From 1e4b4d21c509091e70781b24285096613de9f6e9 Mon Sep 17 00:00:00 2001 From: Elliott Minns Date: Mon, 11 Nov 2024 17:07:09 -0600 Subject: [PATCH] testing deploy --- .github/workflows/deploy.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/deploy.yaml diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml new file mode 100644 index 0000000..2271871 --- /dev/null +++ b/.github/workflows/deploy.yaml @@ -0,0 +1,23 @@ +name: Deploy to Server + +on: + push: + branches: + - deploytest + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Setup SSH + uses: webfactory/ssh-agent@v0.5.3 + with: + ssh-private-key: ${{ secrets.DEPLOY_SSH_KEY }} + + - name: Deploy code via SSH + run: | + ssh deploytest@zenful.cloud "cd /home/elliott/guestbook && docker compose up -d"