Skip to content

Commit 96e15f8

Browse files
committed
CI: Use ED25519 key
1 parent 390c4ff commit 96e15f8

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.circleci/config.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,9 +342,20 @@ jobs:
342342
curl -sSL https://github.com/github/hub/releases/download/v2.2.9/hub-linux-amd64-2.2.9.tgz | \
343343
tar zxv -C /tmp
344344
sudo /tmp/hub-linux-amd64-2.2.9/install
345+
- run:
346+
name: Expand SSH Key
347+
command: |
348+
(echo "-----BEGIN OPENSSH PRIVATE KEY-----";
349+
echo $GITHUB_ED25519 | fold -w 71;
350+
echo "-----END OPENSSH PRIVATE KEY-----") > ~/.ssh/id_ed25519
351+
chmod go-rwx ~/.ssh/id_ed25519
352+
ssh-keygen -y -f ~/.ssh/id_ed25519 > ~/.ssh/id_ed25519.pub
345353
- run:
346354
name: Update feedstock
347-
command: /home/circleci/nipype/tools/feedstock.sh
355+
command: |
356+
ssh-add -D
357+
ssh-add ~/.ssh/id_ed25519
358+
/home/circleci/nipype/tools/feedstock.sh
348359
349360
350361
workflows:

0 commit comments

Comments
 (0)