From a60b8d17c9089803f4064b3dd9cd70266d7fc1bc 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 | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4dd8403d..8efd2c47 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -37,3 +37,30 @@ 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 + # FIXME: Make configurable + # git_remote_url: 'ssh://dokku@dokku.kausal.tech:22/watch-dev' + git_remote_url: 'ssh://dokku@100.75.0.2:22/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 }} + # FIXME: remove after testing + git_push_flags: -v + trace: '1' + env: + GIT_SSH_COMMAND: 'ssh -vvv'