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

Ci/merge workflow #16

Merged
merged 6 commits into from
Sep 23, 2023
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
22 changes: 4 additions & 18 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,34 +19,26 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
package: [init, database, backend-go, backend-java, backend-py, frontend]
name: [database, backend-go, backend-java, backend-py, frontend]
include:
- name: init
file: common/openshift.init.yml
overwrite: false
repository: bcgov/quickstart-openshift
- name: database
file: database/openshift.deploy.yml
overwrite: false
repository: bcgov/quickstart-openshift
- name: backend-go
file: backend-go/openshift.deploy.yml
overwrite: true
parameters: -p MIN_REPLICAS=1 -p MAX_REPLICAS=2
-p PROMOTE_MIGRATION=${{ github.repository }}/migrations-go:test
parameters: -p PROMOTE_MIGRATION=${{ github.repository }}/migrations-go:test
- name: backend-java
file: backend-java/openshift.deploy.yml
overwrite: true
parameters: -p MIN_REPLICAS=1 -p MAX_REPLICAS=2
- name: backend-py
file: backend-py/openshift.deploy.yml
overwrite: true
parameters: -p MIN_REPLICAS=1 -p MAX_REPLICAS=2
-p PROMOTE_MIGRATION=${{ github.repository }}/migrations-py:test
parameters: -p PROMOTE_MIGRATION=${{ github.repository }}/migrations-py:test
- name: frontend
file: frontend/openshift.deploy.yml
overwrite: true
parameters: -p MIN_REPLICAS=1 -p MAX_REPLICAS=2
repository: bcgov/quickstart-openshift
steps:
- uses: bcgov-nr/action-deployer-openshift@v1.4.0
Expand All @@ -56,7 +48,6 @@ jobs:
oc_server: ${{ vars.OC_SERVER }}
oc_token: ${{ secrets.OC_TOKEN }}
overwrite: ${{ matrix.overwrite }}
penetration_test: false
parameters:
-p ZONE=test -p NAME=${{ github.event.repository.name }}
-p PROMOTE=${{ github.repository }}/${{ matrix.name }}:test
Expand Down Expand Up @@ -130,12 +121,8 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
package: [init, database, backend-go, backend-java, backend-py, frontend]
name: [database, backend-go, backend-java, backend-py, frontend]
include:
- name: init
file: common/openshift.init.yml
overwrite: false
repository: bcgov/quickstart-openshift
- name: database
file: database/openshift.deploy.yml
overwrite: false
Expand Down Expand Up @@ -167,7 +154,6 @@ jobs:
oc_server: ${{ vars.OC_SERVER }}
oc_token: ${{ secrets.OC_TOKEN }}
overwrite: ${{ matrix.overwrite }}
penetration_test: false
parameters:
-p ZONE=prod -p NAME=${{ github.event.repository.name }}
-p PROMOTE=${{ github.repository }}/${{ matrix.name }}:prod
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-close.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
packages: write
strategy:
matrix:
package: [backend-go, backend-java, backend-py, migrations-go, migrations-py]
package: [database, backend-go, backend-java, backend-py, migrations-go, migrations-py, frontend]
steps:
- uses: shrink/actions-docker-registry-tag@v3
with:
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,8 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
package: [init, database, backend-go, backend-java, backend-py, frontend]
name: [database, backend-go, backend-java, backend-py, frontend]
include:
- name: init
file: common/openshift.init.yml
overwrite: false
repository: bcgov/quickstart-openshift
- name: database
file: database/openshift.deploy.yml
overwrite: false
Expand Down Expand Up @@ -132,7 +128,6 @@ jobs:
oc_server: ${{ vars.OC_SERVER }}
oc_token: ${{ secrets.OC_TOKEN }}
overwrite: ${{ matrix.overwrite }}
penetration_test: false
parameters:
-p ZONE=${{ github.event.number }} -p NAME=${{ github.event.repository.name }}
-p PROMOTE=${{ github.repository }}/${{ matrix.name }}:${{ github.event.number }}
Expand Down
Loading