Merge pull request 'Hernoem workflow_dispatch productie-optie en voeg Deploy to Test optie toe' (#9) from feature/deploy-test-dispatch-option into master
Continuous Integration / config (push) Successful in 10s
Continuous Integration / prepare (push) Successful in 1m25s
Continuous Integration / build-production (push) Skipped
Continuous Integration / build (push) Successful in 2m5s
Continuous Integration / test (push) Successful in 2m1s
Continuous Integration / deploy-production (push) Skipped
Deploy / deploy (push) Successful in 37s
Continuous Integration / deploy-test (push) Successful in 38s
Continuous Integration / config (push) Successful in 10s
Continuous Integration / prepare (push) Successful in 1m25s
Continuous Integration / build-production (push) Skipped
Continuous Integration / build (push) Successful in 2m5s
Continuous Integration / test (push) Successful in 2m1s
Continuous Integration / deploy-production (push) Skipped
Deploy / deploy (push) Successful in 37s
Continuous Integration / deploy-test (push) Successful in 38s
Reviewed-on: #9
This commit was merged in pull request #9.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user