Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: helm deployer shared workflow_call #1850

Merged
merged 4 commits into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.