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.