Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
justinh-rahb authored Sep 6, 2024
1 parent dc30888 commit dbd4cc6
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,16 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

deploy-to-dokku:
deploy-to-coolify:
needs: build-and-push-image
runs-on: ubuntu-latest
permissions:
contents: none
packages: none

steps:
- name: Deploy to Dokku
uses: dokku/[email protected]
with:
git_remote_url: ${{ env.DOKKU_REMOTE_URL }}
git_push_flags: --force
ssh_private_key: ${{ secrets.DOKKU_SSH_PRIVATE_KEY }}
deploy_docker_image: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}
# Step 1: Deploy to Coolify by triggering the webhook
- name: Deploy to Coolify
run: |
curl --request GET '${{ secrets.COOLIFY_WEBHOOK_PROD }}' \
--header 'Authorization: Bearer ${{ secrets.COOLIFY_TOKEN }}'

0 comments on commit dbd4cc6

Please sign in to comment.