fix(cd): only deploy when CI passes on main
All checks were successful
CI / Lint / Test / Vet (push) Successful in 10s
CI / Mirror to GitHub (push) Successful in 3s

This commit is contained in:
Mathias Bergqvist
2026-04-23 16:24:59 +02:00
parent 3607920601
commit 1bfe501d09

View File

@@ -1,13 +1,16 @@
name: cd name: cd
on: on:
push: workflow_run:
workflows: ["CI"]
types: [completed]
branches: [main] branches: [main]
jobs: jobs:
deploy: deploy:
name: Build and deploy name: Build and deploy
runs-on: self-hosted runs-on: self-hosted
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'push' }}
env: env:
SERVICE: supervisor SERVICE: supervisor
IMAGE: gitea.d-ma.be/mathias/supervisor IMAGE: gitea.d-ma.be/mathias/supervisor