generated from bcgov/quickstart-openshift
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NR-BCMI-1] Copy files, update config (#2)
- Loading branch information
Showing
400 changed files
with
59,538 additions
and
29,914 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,12 +88,12 @@ jobs: | |
runs-on: ubuntu-24.04 | ||
strategy: | ||
matrix: | ||
name: [backend, frontend] | ||
name: [cms, frontend] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: grafana/[email protected] | ||
env: | ||
BACKEND_URL: https://${{ env.PREFIX }}-frontend.${{ env.DOMAIN }}/api | ||
CMS_URL: https://${{ env.PREFIX }}-frontend.${{ env.DOMAIN }}/api | ||
FRONTEND_URL: https://${{ env.PREFIX }}-frontend.${{ env.DOMAIN }} | ||
with: | ||
filename: ./tests/load/${{ matrix.name }}-test.js | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,63 +32,64 @@ jobs: | |
- name: PR Number | ||
id: pr | ||
uses: bcgov-nr/[email protected] | ||
deploy_db: | ||
name: Deploys Database | ||
uses: ./.github/workflows/.dbdeployer.yml | ||
secrets: | ||
oc_namespace: ${{ secrets.OC_NAMESPACE }} | ||
oc_token: ${{ secrets.OC_TOKEN }} | ||
with: | ||
environment: test | ||
# https://github.com/bcgov/quickstart-openshift-helpers | ||
deploy-test: | ||
name: Deploy (test) | ||
uses: ./.github/workflows/.deployer.yml | ||
secrets: | ||
oc_namespace: ${{ secrets.OC_NAMESPACE }} | ||
oc_token: ${{ secrets.OC_TOKEN }} | ||
with: | ||
environment: test | ||
db_user: app | ||
# deploy_db: | ||
# name: Deploys Database | ||
# uses: ./.github/workflows/.dbdeployer.yml | ||
# secrets: | ||
# oc_namespace: ${{ secrets.OC_NAMESPACE }} | ||
# oc_token: ${{ secrets.OC_TOKEN }} | ||
# with: | ||
# environment: test | ||
# # https://github.com/bcgov/quickstart-openshift-helpers | ||
|
||
# deploy-test: | ||
# name: Deploy (test) | ||
# uses: ./.github/workflows/.deployer.yml | ||
# secrets: | ||
# oc_namespace: ${{ secrets.OC_NAMESPACE }} | ||
# oc_token: ${{ secrets.OC_TOKEN }} | ||
# with: | ||
# environment: test | ||
# db_user: app | ||
|
||
deploy_db_prod: | ||
name: Deploys Database PROD | ||
uses: ./.github/workflows/.dbdeployer.yml | ||
secrets: | ||
oc_namespace: ${{ secrets.OC_NAMESPACE }} | ||
oc_token: ${{ secrets.OC_TOKEN }} | ||
with: | ||
environment: prod | ||
deploy-prod: | ||
name: Deploy (prod) | ||
needs: [deploy-test, vars] | ||
uses: ./.github/workflows/.deployer.yml | ||
secrets: | ||
oc_namespace: ${{ secrets.OC_NAMESPACE }} | ||
oc_token: ${{ secrets.OC_TOKEN }} | ||
with: | ||
environment: prod | ||
db_user: app | ||
params: | ||
--set backend.deploymentStrategy=RollingUpdate | ||
--set frontend.deploymentStrategy=RollingUpdate | ||
--set global.autoscaling=true | ||
--set frontend.pdb.enabled=true | ||
--set backend.pdb.enabled=true | ||
promote: | ||
name: Promote Images | ||
needs: [deploy-prod, vars] | ||
runs-on: ubuntu-24.04 | ||
permissions: | ||
packages: write | ||
strategy: | ||
matrix: | ||
package: [migrations, backend, frontend] | ||
timeout-minutes: 1 | ||
steps: | ||
- uses: shrink/actions-docker-registry-tag@v4 | ||
with: | ||
registry: ghcr.io | ||
repository: ${{ github.repository }}/${{ matrix.package }} | ||
target: ${{ needs.vars.outputs.pr }} | ||
tags: prod | ||
# deploy_db_prod: | ||
# name: Deploys Database PROD | ||
# uses: ./.github/workflows/.dbdeployer.yml | ||
# secrets: | ||
# oc_namespace: ${{ secrets.OC_NAMESPACE }} | ||
# oc_token: ${{ secrets.OC_TOKEN }} | ||
# with: | ||
# environment: prod | ||
# deploy-prod: | ||
# name: Deploy (prod) | ||
# needs: [deploy-test, vars] | ||
# uses: ./.github/workflows/.deployer.yml | ||
# secrets: | ||
# oc_namespace: ${{ secrets.OC_NAMESPACE }} | ||
# oc_token: ${{ secrets.OC_TOKEN }} | ||
# with: | ||
# environment: prod | ||
# db_user: app | ||
# params: | ||
# --set cms.deploymentStrategy=RollingUpdate | ||
# --set frontend.deploymentStrategy=RollingUpdate | ||
# --set global.autoscaling=true | ||
# --set frontend.pdb.enabled=true | ||
# --set cms.pdb.enabled=true | ||
# promote: | ||
# name: Promote Images | ||
# needs: [deploy-prod, vars] | ||
# runs-on: ubuntu-24.04 | ||
# permissions: | ||
# packages: write | ||
# strategy: | ||
# matrix: | ||
# package: [cms, frontend] | ||
# timeout-minutes: 1 | ||
# steps: | ||
# - uses: shrink/actions-docker-registry-tag@v4 | ||
# with: | ||
# registry: ghcr.io | ||
# repository: ${{ github.repository }}/${{ matrix.package }} | ||
# target: ${{ needs.vars.outputs.pr }} | ||
# tags: prod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ jobs: | |
runs-on: ubuntu-24.04 | ||
strategy: | ||
matrix: | ||
package: [backend, frontend, migrations] | ||
package: [cms, frontend] | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: bcgov-nr/[email protected] | ||
|
@@ -26,12 +26,12 @@ jobs: | |
tag_fallback: latest | ||
triggers: ('${{ matrix.package }}/') | ||
|
||
deploy_db: | ||
name: Deploys Database | ||
uses: ./.github/workflows/.dbdeployer.yml | ||
secrets: | ||
oc_namespace: ${{ secrets.OC_NAMESPACE }} | ||
oc_token: ${{ secrets.OC_TOKEN }} | ||
# deploy_db: | ||
# name: Deploys Database | ||
# uses: ./.github/workflows/.dbdeployer.yml | ||
# secrets: | ||
# oc_namespace: ${{ secrets.OC_NAMESPACE }} | ||
# oc_token: ${{ secrets.OC_TOKEN }} | ||
|
||
# https://github.com/bcgov/quickstart-openshift-helpers | ||
deploys: | ||
|
@@ -42,21 +42,21 @@ jobs: | |
oc_namespace: ${{ secrets.OC_NAMESPACE }} | ||
oc_token: ${{ secrets.OC_TOKEN }} | ||
with: | ||
triggers: ('backend/' 'frontend/' 'migrations/' 'charts/') | ||
triggers: ('cms/' 'frontend/' 'charts/') | ||
db_user: app-${{github.event.number}} | ||
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 }} | ||
# 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] | ||
needs: [builds, deploys] | ||
if: always() | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.