Skip to content

Commit

Permalink
feat: helm deployer shared workflow_call (#1850)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts authored Mar 6, 2024
1 parent 0503774 commit d3e2243
Show file tree
Hide file tree
Showing 22 changed files with 14 additions and 15 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,3 @@ jobs:
# Remove old build runs, build pods and deployment pods
oc delete po --field-selector=status.phase==Succeeded
tests:
name: Tests
needs: [deploys]
if: ${{ inputs.test == 'true' && inputs.build_outputs != '' }}
uses: ./.github/workflows/.tests.yml
with:
target: ${{ inputs.release }}
21 changes: 14 additions & 7 deletions .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
digest: ${{ steps.builds.outputs.digest }}
strategy:
matrix:
package: [migrations, backend, frontend]
package: [backend, frontend, migrations]
timeout-minutes: 10
steps:
- uses: bcgov-nr/[email protected]
Expand All @@ -35,16 +35,23 @@ jobs:
deploys:
name: Deploys
needs: [builds]
uses: ./.github/workflows/.deploy.yml
secrets: inherit
uses: bcgov/quickstart-openshift-helpers/.github/workflows/[email protected]
secrets:
oc_namespace: ${{ vars.OC_NAMESPACE }}
oc_token: ${{ secrets.OC_TOKEN }}
with:
build_outputs: ${{ needs.builds.outputs.digest }}
tag: ${{ github.event.number }}
release: ${{ github.event.number }}
triggers: ('backend/', 'frontend/', 'migrations/')

tests:
name: Tests
needs: [deploys]
uses: ./.github/workflows/.tests.yml
with:
target: ${{ github.event.number }}

results:
name: PR Results
needs: [deploys]
needs: [tests]
runs-on: ubuntu-22.04
steps:
- run: echo "Workflow completed successfully!"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit d3e2243

Please sign in to comment.