From 7704a483384d0f0c0bfbf0de6c1eca9a3ebd7ec8 Mon Sep 17 00:00:00 2001 From: Bernhard Bliem Date: Fri, 11 Oct 2024 16:37:38 +0200 Subject: [PATCH] Test --- .github/workflows/ci.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4dd8403d..67772607 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -37,3 +37,28 @@ 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: harbor.kausal.tech/library/ubuntu:latest + steps: + # - name: ip addr + # run: ip addr + # - name: nc + # run: nc -zv 100.75.0.2 22 + - name: Push to dokku + # uses: dokku/github-action@master + uses: docker://dokku/ci-docker-image:latest + with: + args: dokku-deploy + env: + # GIT_SSH_COMMAND: 'ssh -vvv' + # FIXME: Make configurable + GIT_REMOTE_URL: 'ssh://dokku@dokku.kausal.tech/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