Trigger Dokploy deploy after image push
- Add deploy job to docker workflow: POST compose redeploy webhook once the image is pushed (fixes push-webhook race) - README: fix CI/CD tag docs
This commit is contained in:
2 files changed
+11
-2
No files matched your search
@@ -75,3 +75,13 @@ jobs:
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
|
||||
deploy:
|
||||
name: Trigger Deploy
|
||||
needs: image
|
||||
if: github.ref == 'refs/heads/main'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Trigger Deploy
|
||||
run: |
|
||||
curl --fail -X POST "${{ secrets.WEBHOOK_URL }}"
|
||||
@@ -50,10 +50,9 @@ docker pull git.fristy.net/fristy/fristynet:latest
|
||||
|
||||
## CI/CD
|
||||
|
||||
Pushes to `main` (and `v*` tags) run format check, lint and build first. If those pass, the Docker image is built and pushed to the Gitea registry:
|
||||
Pushes to `main` (and `<sha>` tags) run format check, lint and build first. If those pass, the Docker image is built and pushed to the Gitea registry:
|
||||
|
||||
- `git.fristy.net/fristy/fristynet:latest` on every `main` push
|
||||
- `git.fristy.net/fristy/fristynet:<version>` on tags like `v1.2.0`
|
||||
- `git.fristy.net/fristy/fristynet:<sha>` for every pushed commit
|
||||
|
||||
Pull requests only run the checks — nothing is pushed.
|
||||
|
||||
Reference in new issue
Block a user