Skip to content

Commit

Permalink
Add openshift demo to repository
Browse files Browse the repository at this point in the history
  • Loading branch information
vivid-cpreston committed Aug 17, 2024
1 parent 60006f6 commit 7ca1f03
Show file tree
Hide file tree
Showing 106 changed files with 22,964 additions and 0 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/demo-openshift.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: PR

on:
workflow_dispatch:
pull_request:
paths:
- 'openshift-demo/**'

concurrency:
# Cancel in progress for PR open and close
group: ${{ github.event.number }}
cancel-in-progress: true

jobs:
# https://github.com/bcgov-nr/action-builder-ghcr
builds:
name: Builds
runs-on: ubuntu-22.04
strategy:
matrix:
package: [backend, frontend, migrations]
timeout-minutes: 10
steps:
- uses: bcgov-nr/[email protected]
with:
build_context: openshift-demo/${{ matrix.build_context }}
keep_versions: 10
package: ${{ matrix.package }}
tag: ${{ github.event.number }}
tag_fallback: latest
triggers: ('${{ matrix.package }}/')

# 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: ('backend/' 'frontend/' 'migrations/')
params:
--set global.secrets.persist=false

tests:
name: Tests
if: needs.deploys.outputs.triggered == 'true'
needs: [deploys]
uses: ./.github/workflows/.tests.yml
with:
target: ${{ github.event.number }}

results:
name: PR Results
needs: [builds, deploys, tests]
if: always() && (!failure()) && (!cancelled())
runs-on: ubuntu-22.04
steps:
- run: echo "Success!"
Loading

0 comments on commit 7ca1f03

Please sign in to comment.