CI: productie-deploy en productie-build alleen bij workflow_dispatch met deploy_production op een release/*-branch (gelijk aan ASF); documentatie bijgewerkt
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -172,7 +172,7 @@ jobs:
|
||||
build-production:
|
||||
needs: prepare
|
||||
runs-on: linux
|
||||
if: github.event_name == 'workflow_dispatch' && github.event.inputs.deploy_production == 'true'
|
||||
if: github.event_name == 'workflow_dispatch' && github.event.inputs.deploy_production == 'true' && startsWith(github.ref, 'refs/heads/release/')
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
@@ -348,10 +348,14 @@ jobs:
|
||||
# bewuste actie via workflow_dispatch met het "deploy_production"-vinkje
|
||||
# aangevinkt. Zo blijft de bestaande testdeploy-flow ongewijzigd en kan
|
||||
# niemand per ongeluk productie deployen door simpelweg naar master te
|
||||
# pushen of de workflow handmatig te starten zonder dat vinkje.
|
||||
# pushen of de workflow handmatig te starten zonder dat vinkje. Het vinkje
|
||||
# werkt bovendien alleen op een branch die met release/ begint.
|
||||
deploy-production:
|
||||
needs: [build-production, test, lighthouse, config]
|
||||
if: github.event_name == 'workflow_dispatch' && github.event.inputs.deploy_production == 'true'
|
||||
# Alleen vanaf een release/*-branch (zoals de ASF-site): een dispatch met het
|
||||
# vinkje op master of een feature-branch doet voor productie niets. Een push
|
||||
# deployt nooit naar productie.
|
||||
if: github.event_name == 'workflow_dispatch' && github.event.inputs.deploy_production == 'true' && startsWith(github.ref, 'refs/heads/release/')
|
||||
uses: ./.gitea/workflows/deploy.yaml
|
||||
secrets: inherit
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user