chore(deps): update bcgov/quickstart-openshift-helpers action to v0.8.3 #418
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pull Request | |
on: | |
pull_request: | |
concurrency: | |
# PR open and close use the same group, allowing only one at a time | |
group: ${{ github.event.number }} | |
cancel-in-progress: true | |
jobs: | |
builds: | |
name: Builds | |
runs-on: ubuntu-22.04 | |
permissions: | |
packages: write | |
strategy: | |
matrix: | |
package: [frontend, rctool] | |
include: | |
- package: frontend | |
build_file: ./frontend/Dockerfile.nginx | |
- package: rctool | |
build_file: ./frontend/Dockerfile.app | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: bcgov-nr/[email protected] | |
with: | |
package: ${{ matrix.package }} | |
build_file: ${{ matrix.build_file }} | |
build_context: ./frontend | |
tag: ${{ github.event.number }} | |
tag_fallback: latest | |
token: ${{ secrets.GITHUB_TOKEN }} | |
triggers: ('frontend/') | |
# https://github.com/bcgov/quickstart-openshift-helpers | |
deploys: | |
name: Deploys | |
needs: [ builds ] | |
uses: bcgov/quickstart-openshift-helpers/.github/workflows/[email protected] | |
secrets: | |
oc_namespace: ${{ secrets.OC_NAMESPACE }} | |
oc_token: ${{ secrets.OC_TOKEN }} | |
with: | |
triggers: ('frontend/') | |
params: --set global.secrets.persist=false | |
oc_server: ${{ vars.OC_SERVER }} | |
results: | |
name: PR Results | |
needs: [builds, deploys] | |
if: always() | |
runs-on: ubuntu-22.04 | |
steps: | |
- if: contains(needs.*.result, 'failure') | |
run: echo "At least one job has failed." && exit 1 | |
- run: echo "Success!" |