diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4dd8403d..c8bbc8c8 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -37,3 +37,25 @@ jobs: project_id: watch-ui build_id: ${{ needs.build.outputs.build_id }} deployment_env: ${{ needs.build.outputs.deployment_env }} + + deploy-dokku: + needs: [build, deploy] + runs-on: runner-prod + container: + image: dokku/ci-docker-image:latest + steps: + - name: Push to dokku + # uses: dokku/github-action@master + # uses: docker://dokku/ci-docker-image:latest + # with: + # args: dokku-deploy + run: dokku-deploy + env: + # GIT_SSH_COMMAND: 'ssh -vvv' + # FIXME: Make configurable + GIT_REMOTE_URL: 'ssh://dokku@dokku.kausal.tech:26228/watch-dev' + SSH_PRIVATE_KEY: ${{ secrets.DOKKU_SSH_PRIVATE_KEY }} + # DEPLOY_DOCKER_IMAGE: ${{ github.repository }}:${{ github.sha }} + DEPLOY_DOCKER_IMAGE: ${{ needs.build.outputs.image }}:${{ needs.build.outputs.image_tag }} + TRACE: '1' + # GIT_PUSH_FLAGS: -v