diff --git a/deployer/README.md b/deployer/README.md index a471fa2..56f9da9 100644 --- a/deployer/README.md +++ b/deployer/README.md @@ -48,9 +48,10 @@ Testing has only been done with public images (ghcr.io, hub.docker.com) so far. # Default = "15m" timeout: "15m" - # Bash array to diff for build triggering + # Paths to diff for build triggering (one path per line); omit to always build # Optional, defaults to nothing, which forces a build - triggers: ('frontend/') + triggers: | + frontend/ ### Usually a bad idea / not recommended @@ -86,7 +87,8 @@ deploys: parameters: -p MIN_REPLICAS=1 -p MAX_REPLICAS=2 -p PR_NUMBER=${{ github.event.number }} - triggers: ('frontend/') + triggers: | + frontend/ ``` # Example, Matrix / Multiple Templates @@ -105,7 +107,8 @@ runs-on: ubuntu-24.04 file: backend/openshift.deploy.yml overwrite: true parameters: -p MIN_REPLICAS=1 -p MAX_REPLICAS=2 - triggers: ('backend/') + triggers: | + backend/ - name: database overwrite: false file: database/openshift.deploy.yml @@ -113,7 +116,9 @@ runs-on: ubuntu-24.04 overwrite: true file: frontend/openshift.deploy.yml parameters: -p MIN_REPLICAS=1 -p MAX_REPLICAS=2 - triggers: ('backend/', 'frontend/') + triggers: | + backend/ + frontend/ - name: init overwrite: false file: common/openshift.init.yml @@ -151,7 +156,9 @@ runs-on: ubuntu-24.04 - name: frontend file: frontend/openshift.deploy.yml parameters: -p MIN_REPLICAS=1 -p MAX_REPLICAS=2 - triggers: ('backend/', 'frontend/') + triggers: | + backend/ + frontend/ steps: - name: Deploys uses: bcgov/actions-openshift/deployer@vX.Y.Z diff --git a/deployer/action.yml b/deployer/action.yml index 10e6457..0abfbfb 100644 --- a/deployer/action.yml +++ b/deployer/action.yml @@ -48,8 +48,11 @@ inputs: default: "15m" triggers: description: | - Omit to always build, otherwise trigger by path - Example: ('./backend/', './frontend/) + Omit to always build, otherwise trigger by path (one path per line). + Example: + triggers: | + ./backend/ + ./frontend/ lite_mode: description: | Apply 'lite mode' modifications (scaling down, removing PDBs) for pull requests? diff --git a/oc-runner/README.md b/oc-runner/README.md index 6aa9876..c5045ab 100644 --- a/oc-runner/README.md +++ b/oc-runner/README.md @@ -40,8 +40,11 @@ Provide as few as zero commands to login only. There is a separate parameter fo # Cronjob to run and report on cronjob: repo-name-cronjob-etc - # Bash array to diff for triggering; omit to always run - triggers: ('frontend/' 'backend/' 'database/') + # Paths to diff for triggering (one path per line); omit to always run + triggers: | + frontend/ + backend/ + database/ ### Usually a bad idea / not recommended @@ -101,7 +104,10 @@ whoareyou: oc_namespace: ${{ vars.oc_namespace }} oc_server: ${{ vars.oc_server }} oc_token: ${{ secrets.OC_TOKEN }} - triggers: ('frontend/' 'backend/' 'database/') + triggers: | + frontend/ + backend/ + database/ commands: | oc whoami oc version @@ -121,7 +127,10 @@ cronjob: oc_namespace: ${{ vars.oc_namespace }} oc_server: ${{ vars.oc_server }} oc_token: ${{ secrets.OC_TOKEN }} - triggers: ('cronjobland/' 'misc/' 'whatever/') + triggers: | + cronjobland/ + misc/ + whatever/ cronjob: repo-name-cronjob-etc ``` diff --git a/oc-runner/action.yml b/oc-runner/action.yml index 5f8d6e1..b8d3395 100644 --- a/oc-runner/action.yml +++ b/oc-runner/action.yml @@ -38,8 +38,12 @@ inputs: Example: nr-repository-name-cronjob-component triggers: description: | - Bash array to diff for triggering, omit to always run - Example: ('./common', './backend/' './frontend/) + Omit to always run, otherwise trigger by path (one path per line). + Example: + triggers: | + ./common/ + ./backend/ + ./frontend/ ### Usually a bad idea / not recommended cronjob_tail: