From 030f5c4e6252b27110dbd66ddf86e149bb28ed0d Mon Sep 17 00:00:00 2001 From: Sluijsens Date: Sat, 1 Aug 2026 01:00:53 +0200 Subject: [PATCH] Hernoem workflow_dispatch productie-optie naar "Deploy to Production" en voeg "Deploy to Test" optie toe Voegt een deploy_test-checkbox toe voor handmatige runs, analoog aan de bestaande deploy_production-checkbox. De automatische testdeploy bij een push/merge naar master blijft ongewijzigd en onafhankelijk van dit vinkje. Co-Authored-By: Claude Sonnet 5 --- .gitea/workflows/continuous_integration.yaml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/continuous_integration.yaml b/.gitea/workflows/continuous_integration.yaml index 972155c..22aa7ec 100644 --- a/.gitea/workflows/continuous_integration.yaml +++ b/.gitea/workflows/continuous_integration.yaml @@ -3,7 +3,16 @@ on: workflow_dispatch: inputs: deploy_production: - description: 'Na een succesvolle build/test ook naar productie deployen (naast de automatische testdeploy)?' + description: 'Deploy to Production' + type: boolean + default: false + # Bij een handmatige run wordt standaard NIET naar test gedeployed + # (default false), analoog aan deploy_production hierboven - je vinkt + # dit bewust aan. Dit is los van de automatische testdeploy bij een + # push naar master (zie de 'if' van de deploy-test-job hieronder), die + # altijd blijft gebeuren ongeacht dit vinkje. + deploy_test: + description: 'Deploy to Test' type: boolean default: false pull_request: @@ -236,7 +245,12 @@ jobs: # naar de testomgeving deployed, om testen tijdens deze werkbranch te # vereenvoudigen. Verwijder de 'pull_request'-conditie hieronder weer # zodra dat niet meer nodig is. - if: github.event_name == 'workflow_dispatch' || github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref == 'refs/heads/master') + # + # De push-naar-master- en pull_request-condities hieronder zijn bewust + # ONAFHANKELIJK van het 'deploy_test'-vinkje: de automatische testdeploy + # bij een merge naar master moet altijd blijven gebeuren. Het vinkje + # geldt alleen voor handmatige workflow_dispatch-runs. + if: (github.event_name == 'workflow_dispatch' && github.event.inputs.deploy_test == 'true') || github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref == 'refs/heads/master') uses: ./.gitea/workflows/deploy.yaml secrets: inherit # Deze waarden komen uit het `env:`-blok bovenaan dit bestand, via de -- 2.39.5