mirror of
https://git.koehn.com/docker/postgres-wal-g.git
synced 2026-11-23 09:36:38 -06:00
setting up key for remote build
This commit is contained in:
1 parent
d38cf5c191
commit
2843231ba3
1 file changed
+2
-1
@@ -20,12 +20,13 @@ jobs:
|
||||
- name: Setup deployment key
|
||||
env:
|
||||
KEY: ${{ secrets.SSH_KEY }}
|
||||
KNOWN_HOSTS: ${{ secrets.KNOWN_HOSTS }}
|
||||
run: |
|
||||
mkdir "$HOME/.ssh"
|
||||
chmod 700 "$HOME/.ssh"
|
||||
echo "$KEY" > "$HOME/.ssh/id_rsa"
|
||||
chmod 600 "$HOME/.ssh/id_rsa"
|
||||
ssh-keyscan -H k3s-sd-01.koehn.com > "$HOME/.ssh/known_hosts"
|
||||
echo "$KNOWN_HOSTS" > "$HOME/.ssh/known_hosts"
|
||||
chmod 600 "$HOME/.ssh/known_hosts"
|
||||
ssh -l root -- k3s-sd-03.koehn.com docker version
|
||||
|
||||
|
||||
Reference in new issue
Block a user