This commit is contained in:
@@ -30,14 +30,15 @@ jobs:
|
||||
git checkout -q "$GITHUB_SHA"
|
||||
|
||||
- name: Write SSH key
|
||||
env:
|
||||
SSH_KEY_STELLAAMOR: ${{ secrets.SSH_KEY_STELLAAMOR }}
|
||||
run: |
|
||||
install -m 700 -d ~/.ssh
|
||||
umask 177
|
||||
cat > ~/.ssh/deploy_stellaamor <<'KEY'
|
||||
${{ secrets.SSH_KEY_STELLAAMOR }}
|
||||
KEY
|
||||
printf '%s' "$SSH_KEY_STELLAAMOR" > ~/.ssh/deploy_stellaamor
|
||||
chmod 600 ~/.ssh/deploy_stellaamor
|
||||
|
||||
|
||||
- name: SSH smoke test
|
||||
run: ssh $SSH_OPTS -i "$SSH_KEY_PATH" ${SSH_USER}@${SSH_HOST} true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user