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: