From ff796aedad068d9c1ec4179b428db96e5f67ca5a Mon Sep 17 00:00:00 2001 From: Fajar-Islami Date: Mon, 1 Jul 2024 11:31:43 +0700 Subject: [PATCH] update ga --- .github/workflows/go.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 349e072..116caf9 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -61,6 +61,24 @@ jobs: subject-digest: ${{ steps.push.outputs.digest }} push-to-registry: true + deploy: + name: Deploy app + needs: + - build-image + runs-on: ubuntu-latest + steps: + - name: Deploy using ssh + uses: appleboy/ssh-action@master + with: + host: ${{ secrets.SSH_HOST }} + username: ${{ secrets.SSH_USERNAME }} + key: ${{ secrets.SSH_PRIVATE_KEY }} + port: 2221 + script: | + cd ~/documents/ + date >> test.md + cat test.md + # deploy: # name: Deploy app # needs: