Skip to content

chore(deps): lock file maintenance #443

chore(deps): lock file maintenance

chore(deps): lock file maintenance #443

Workflow file for this run

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!"