Skip to content

chore(ci): restore templates #587

chore(ci): restore templates

chore(ci): restore templates #587

Workflow file for this run

name: PR
on:
pull_request:
concurrency:
# Cancel in progress for PR open and close
group: ${{ github.event.number }}
cancel-in-progress: false
jobs:
# https://github.com/bcgov/action-builder-ghcr
builds:
name: Builds
runs-on: ubuntu-24.04
permissions:
packages: write
strategy:
matrix:
package: [backend, frontend]
include:
- package: backend
triggers: ('backend/')
- package: frontend
triggers: ('frontend/')
steps:
- uses: bcgov/[email protected]
with:
keep_versions: 50
package: ${{ matrix.package }}
tag: ${{ github.event.number }}
tag_fallback: test
triggers: ${{ matrix.triggers }}
# https://github.com/bcgov/action-deployer-openshift
deploys:
name: Deploys
needs: [builds]
runs-on: ubuntu-24.04
strategy:
matrix:
name: [backend, frontend]
include:
- name: backend
file: backend/openshift.deploy.yml
overwrite: true
parameters:
-p CHES_CLIENT_SECRET=${{ secrets.CHES_CLIENT_SECRET }}

Check failure on line 48 in .github/workflows/pr-open.yml

View workflow run for this annotation

GitHub Actions / PR

Invalid workflow file

The workflow is not valid. .github/workflows/pr-open.yml (Line: 48, Col: 15): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.CHES_CLIENT_SECRET
triggers: ('backend/' 'frontend/')
verification_path: /health
- name: frontend
file: frontend/openshift.deploy.yml
overwrite: true
parameters:
-p VITE_USER_POOLS_WEB_CLIENT_ID=${{ vars.VITE_USER_POOLS_WEB_CLIENT_ID }}
triggers: ('backend/' 'frontend/')
steps:
- uses: bcgov/[email protected]
with:
file: ${{ matrix.file }}
oc_namespace: ${{ vars.OC_NAMESPACE }}
oc_server: ${{ vars.OC_SERVER }}
oc_token: ${{ secrets.OC_TOKEN }}
overwrite: ${{ matrix.overwrite }}
penetration_test: false
parameters:
-p ZONE=${{ github.event.number }} -p TAG=${{ github.event.number }}
-p VITE_QUESTIONS_API_KEY=${{ secrets.VITE_QUESTIONS_API_KEY }}
-p MIN_REPLICAS=1 -p MAX_REPLICAS=2 ${{ matrix.parameters }}
-p S3_SECRETKEY=${{ secrets.S3_SECRETKEY }}
triggers: ${{ matrix.triggers }}
verification_path: ${{ matrix.verification_path }}
results:
name: PR Results
if: always() && !failure()
# Include all needs that could have failures!
needs: [builds, deploys]
runs-on: ubuntu-24.04
steps:
- run: echo "Workflow completed successfully!"