diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 4ea446c5..5b8af2af 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -29,15 +29,11 @@ jobs: shell: bash env: PRIVATE_KEY: ${{ secrets.DEPLOYMENT_PRIVATE_KEY }} - SSH_AUTH_SOCK: /tmp/ssh_agent.sock run: | mkdir -p /home/runner/.ssh echo "$PRIVATE_KEY" > /home/runner/.ssh/id_ed25519 chmod 600 /home/runner/.ssh/id_ed25519 echo -e "[pratchett.ugent.be]:2222 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBIs8YMbO+aiTRlbi7++8CAqzq46zNLMsYAH3ycub6zkCFPKwIsePDlHJhMgTWG54Vwon60UT6FYyrBYbVfAWY1I=\n[pratchett.zeus.gent]:2222 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIs8IQpKz24LZuZZ43yEMqelfKmk+3C62+FA15HHZEK6\n" >> ~/.ssh/known_hosts - ssh-agent -a $SSH_AUTH_SOCK > /dev/null - ssh-add /home/runner/.ssh/id_ed25519 - name: Deploy to production env: - SSH_AUTH_SOCK: /tmp/ssh_agent.sock run: "nanoc --env=prod deploy public" diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index e46bb40f..e4bb594f 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -27,18 +27,14 @@ jobs: shell: bash env: PRIVATE_KEY: ${{ secrets.DEPLOYMENT_PRIVATE_KEY }} - SSH_AUTH_SOCK: /tmp/ssh_agent.sock run: | mkdir -p /home/runner/.ssh echo "$PRIVATE_KEY" > /home/runner/.ssh/id_ed25519 chmod 600 /home/runner/.ssh/id_ed25519 echo -e "[zeus.ugent.be]:2222 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBC87/Q3H8f7ghmA+iCtKGaNyk0fx3Z36Xrn+eGv8a4pD7MXeu6Uwr0aN5HnkcbRWXFtMwnAU3ptoP90vH7qu99w=\n[herbert.ugent.be]:2222 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBGLnJMh2DgqpVnHxOmeV6KffvzZGEVfniq0NFHRGZoL4f7Uc8xeG9gn3cc7lCL02F9LwWZNwR4gSqhGt/RK2S54=\n" >> ~/.ssh/known_hosts - ssh-agent -a $SSH_AUTH_SOCK > /dev/null - ssh-add /home/runner/.ssh/id_ed25519 - name: Deploy site to staging area env: PR_NUMBER: ${{ github.event.pull_request.number }} - SSH_AUTH_SOCK: /tmp/ssh_agent.sock run: | cd output rsync -aR --rsh='ssh -p 2222' . "zeuspr@herbert.ugent.be:/home/zeuspr/public/$PR_NUMBER/"