Compare commits

..
Author SHA1 Message Date
Brad Koehn ffe01b37ae setting up key for remote build 2023-11-09 15:27:07 -06:00
Brad Koehn 6ccf13f61e setting up key for remote build 2023-11-09 15:17:02 -06:00
Brad Koehn 06627b7c94 setting up key for remote build 2023-11-09 15:10:24 -06:00
Brad Koehn 47a9a80143 setting up key for remote build 2023-11-09 15:08:02 -06:00
+12
View File
@@ -16,6 +16,18 @@ jobs:
run: |
echo "::set-output name=postgres::${TAG:0:4}"
echo "::set-output name=walg::${TAG:5:6}"
- name: Setup deployment key
env:
KEY: ${{ secrets.SSH_KEY }}
run: |
apt-get install -y openssh-client
mkdir "$HOME/.ssh"
chmod 700 "$HOME/.ssh"
echo "$KEY" > "$HOME/.ssh/id_rsa"
chmod 600 "$HOME/.ssh/id_rsa"
echo "k3s-sd-03.koehn.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBxtIAg5NYQJ3QLvGSDAYglixflcxOBlLyEOwwKh45Pw" > "$HOME/.ssh/known_hosts"
ssh -l root -- k3s-sd-03.koehn.com docker version
- name: Install Docker
run: curl -fsSL https://get.docker.com | sh