Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions deployer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -105,15 +107,18 @@ 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
- name: frontend
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
Expand Down Expand Up @@ -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
Expand Down
7 changes: 5 additions & 2 deletions deployer/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down
17 changes: 13 additions & 4 deletions oc-runner/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
```

Expand Down
8 changes: 6 additions & 2 deletions oc-runner/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading