From 66be7a71a7d7809be8b42db861cf0aa5ee1146b1 Mon Sep 17 00:00:00 2001 From: fristyxd Date: Thu, 10 Sep 2026 14:46:17 +0300 Subject: [PATCH] Trigger redeploy after image push - Add deploy job to docker workflow: POST redeploy webhook once the image is pushed (fixes push-webhook race) - README: fix CI/CD tag docs --- .gitea/workflows/docker.yaml | 10 ++++++++++ README.md | 3 +-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/docker.yaml b/.gitea/workflows/docker.yaml index 6a3693e..a8aea7b 100644 --- a/.gitea/workflows/docker.yaml +++ b/.gitea/workflows/docker.yaml @@ -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 }}" diff --git a/README.md b/README.md index 5a1a16f..b29e6c1 100644 --- a/README.md +++ b/README.md @@ -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 `` 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:` on tags like `v1.2.0` - `git.fristy.net/fristy/fristynet:` for every pushed commit Pull requests only run the checks — nothing is pushed.