name: Deploy main page on: push: branches: [ master, main ] jobs: deploy: runs-on: [ self-hosted ] container: image: node:24 steps: - name: Checkout code uses: actions/checkout@v2 with: fetch-depth: 0 - name: SSH-Agent Setup id: set-up-ssh uses: webfactory/ssh-agent@v0.9.0 with: ssh-private-key: ${{ secrets.DOKKU_DEPLOY_KEY }} - name: Deploy to Dokku env: SSH_AUTH_SOCK: steps.set-up-ssh.outputs.SSH_AUTH_SOCK run: | git remote add dokku dokku@192.168.1.46:main-page git push dokku master --force