From 056273c45036b6827a752a37d186fa9ad7efcad4 Mon Sep 17 00:00:00 2001 From: ramamimu Date: Fri, 16 Feb 2024 17:57:28 +0700 Subject: [PATCH] feat: cd SSH --- .github/workflows/cd.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/cd.yml diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml new file mode 100644 index 0000000..b59dfff --- /dev/null +++ b/.github/workflows/cd.yml @@ -0,0 +1,21 @@ +name: Continue Deployment + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + deploy: + name: SSH using key + runs-on: ubuntu-latest + steps: + - name: executing remote ssh commands using ssh key + uses: appleboy/ssh-action@v1.0.3 + with: + host: ${{ secrets.HOST }} + username: ${{ secrets.USERNAME }} + key: ${{ secrets.PK_VM }} + port: ${{ secrets.SSH_PORT }} + script: whoami