Skip to content
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
25 changes: 0 additions & 25 deletions .github/workflows/auto-retry.yml

This file was deleted.

27 changes: 18 additions & 9 deletions .github/workflows/crunchy-dr-failover.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ permissions:
jobs:
shutdown-gold-db:
if: ${{ github.event.inputs.step == '1. Shutdown Gold DB' }}
runs-on: ubuntu-latest
runs-on:
group: Larger Runners - OpenShift Static-IP
name: 1. Shutdown Gold DB
environment:
name: ${{ github.event.inputs.environment }}
Expand Down Expand Up @@ -72,7 +73,8 @@ jobs:

set-golddr-primary:
if: ${{ github.event.inputs.step == '2. Set Gold DR as Primary DB' }}
runs-on: ubuntu-latest
runs-on:
group: Larger Runners - OpenShift Static-IP
name: 2. Set Gold DR as Primary DB
environment:
name: ${{ github.event.inputs.environment }}
Expand Down Expand Up @@ -124,7 +126,8 @@ jobs:

delete-gold-db:
if: ${{ github.event.inputs.step == '3. Delete Gold DB' }}
runs-on: ubuntu-latest
runs-on:
group: Larger Runners - OpenShift Static-IP
name: 3. Delete Gold DB
environment:
name: ${{ github.event.inputs.environment }}
Expand Down Expand Up @@ -161,7 +164,8 @@ jobs:

rebuild-gold-standby:
if: ${{ github.event.inputs.step == '4. Rebuild Gold as Standby' }}
runs-on: ubuntu-latest
runs-on:
group: Larger Runners - OpenShift Static-IP
name: 4. Rebuild Gold as Standby
environment:
name: ${{ github.event.inputs.environment }}
Expand Down Expand Up @@ -215,7 +219,8 @@ jobs:

shutdown-golddr-db:
if: ${{ github.event.inputs.step == '5. Shutdown Gold DR DB' }}
runs-on: ubuntu-latest
runs-on:
group: Larger Runners - OpenShift Static-IP
name: 5. Shutdown Gold DR DB
environment:
name: ${{ github.event.inputs.environment }}
Expand Down Expand Up @@ -259,7 +264,8 @@ jobs:

set-gold-primary:
if: ${{ github.event.inputs.step == '6. Set Gold as Primary' }}
runs-on: ubuntu-latest
runs-on:
group: Larger Runners - OpenShift Static-IP
name: 6. Set Gold as Primary
environment:
name: ${{ github.event.inputs.environment }}
Expand Down Expand Up @@ -310,7 +316,8 @@ jobs:

delete-golddr-db:
if: ${{ github.event.inputs.step == '7. Delete Gold DR DB' }}
runs-on: ubuntu-latest
runs-on:
group: Larger Runners - OpenShift Static-IP
name: 7. Delete Gold DR DB
environment:
name: ${{ github.event.inputs.environment }}
Expand Down Expand Up @@ -348,7 +355,8 @@ jobs:

rebuild-golddr-standby:
if: ${{ github.event.inputs.step == '8. Rebuild Gold DR as Standby' }}
runs-on: ubuntu-latest
runs-on:
group: Larger Runners - OpenShift Static-IP
name: 8. Rebuild Gold DR as Standby
environment:
name: ${{ github.event.inputs.environment }}
Expand Down Expand Up @@ -404,7 +412,8 @@ jobs:
sync-monitoring-password:
if: ${{ github.event.inputs.step == '9. Set Monitoring Password' }}
name: 9. Sync Monitoring Password
runs-on: ubuntu-latest
runs-on:
group: Larger Runners - OpenShift Static-IP
environment:
name: ${{ github.event.inputs.environment }}
steps:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/crunchy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ env:
jobs:
deploy-gold:
if: ${{ github.event.inputs.cluster == 'gold' || github.event.inputs.cluster == 'both' }}
runs-on: ubuntu-latest
runs-on:
group: Larger Runners - OpenShift Static-IP
name: Deploy to Gold (${{ github.event.inputs.environment }})
environment:
name: ${{ github.event.inputs.environment }}
Expand Down Expand Up @@ -58,7 +59,8 @@ jobs:

deploy-golddr:
if: ${{ github.event.inputs.cluster == 'golddr' || github.event.inputs.cluster == 'both' }}
runs-on: ubuntu-latest
runs-on:
group: Larger Runners - OpenShift Static-IP
name: Deploy to GoldDR (${{ github.event.inputs.environment }})
environment:
name: ${{ github.event.inputs.environment }}
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ jobs:

update-openshift-gold:
needs: [setup, build-and-push]
runs-on: ubuntu-latest
runs-on:
group: Larger Runners - OpenShift Static-IP
name: Deploy to Gold. Tag ${{ needs.setup.outputs.tag_for_helm }}
environment:
name: ${{ needs.setup.outputs.environment_name }}
Expand All @@ -130,7 +131,8 @@ jobs:
# GoldDR Runs after Gold Deployment due to GoldDR DB being read-only replica of Gold
update-openshift-golddr:
needs: [setup, update-openshift-gold]
runs-on: ubuntu-latest
runs-on:
group: Larger Runners - OpenShift Static-IP
name: Deploy to GoldDR. Tag ${{ needs.setup.outputs.tag_for_helm }}
environment:
name: ${{ needs.setup.outputs.environment_name }}
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ jobs:

update-openshift-gold:
needs: [setup]
runs-on: ubuntu-latest
runs-on:
group: Larger Runners - OpenShift Static-IP
name: Deploy to Gold. Tag ${{ needs.setup.outputs.tag_for_helm }}
environment:
name: ${{ needs.setup.outputs.environment_name }}
Expand All @@ -89,7 +90,8 @@ jobs:
# GoldDR Runs after Gold Deployment due to GoldDR DB being read-only replica of Gold
update-openshift-golddr:
needs: [setup, update-openshift-gold]
runs-on: ubuntu-latest
runs-on:
group: Larger Runners - OpenShift Static-IP
name: Deploy to GoldDR. Tag ${{ needs.setup.outputs.tag_for_helm }}
environment:
name: ${{ needs.setup.outputs.environment_name }}
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/ride-failover.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ on:
jobs:
scale-down-gold:
if: ${{ github.event.inputs.step == 'Scale down RIDE in Gold' }}
runs-on: ubuntu-latest
runs-on:
group: Larger Runners - OpenShift Static-IP
name: Scale down RIDE in Gold (${{ github.event.inputs.environment }})
environment:
name: ${{ github.event.inputs.environment }}
Expand All @@ -46,7 +47,8 @@ jobs:

scale-down-golddr:
if: ${{ github.event.inputs.step == 'Scale down RIDE in Gold DR' }}
runs-on: ubuntu-latest
runs-on:
group: Larger Runners - OpenShift Static-IP
name: Scale down RIDE in Gold DR (${{ github.event.inputs.environment }})
environment:
name: ${{ github.event.inputs.environment }}
Expand All @@ -71,7 +73,8 @@ jobs:

scale-up-gold:
if: ${{ github.event.inputs.step == 'Scale up RIDE in Gold' }}
runs-on: ubuntu-latest
runs-on:
group: Larger Runners - OpenShift Static-IP
name: Scale up RIDE in Gold (${{ github.event.inputs.environment }})
environment:
name: ${{ github.event.inputs.environment }}
Expand Down Expand Up @@ -100,7 +103,8 @@ jobs:

scale-up-golddr:
if: ${{ github.event.inputs.step == 'Scale up RIDE in Gold DR' }}
runs-on: ubuntu-latest
runs-on:
group: Larger Runners - OpenShift Static-IP
name: Scale up RIDE in Gold DR (${{ github.event.inputs.environment }})
environment:
name: ${{ github.event.inputs.environment }}
Expand Down
38 changes: 14 additions & 24 deletions .github/workflows/standbycheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,27 +63,22 @@ jobs:

update-openshift-gold:
needs: build-and-push-standbycheck
runs-on: ubuntu-latest
runs-on:
group: Larger Runners - OpenShift Static-IP
name: Deploy Latest Helm Chart to ${{ github.event.inputs.environment }} in Gold
environment:
name: ${{ github.event.inputs.environment }}
url: https://${{ github.event.inputs.environment }}-ride.apps.gold.devops.gov.bc.ca/lbhealth/
steps:
- name: Checkout code
uses: actions/checkout@v7
uses: actions/checkout@v7

- name: Install CLI tools from OpenShift Mirror
uses: redhat-actions/openshift-tools-installer@v2
with:
oc: "4"

- name: Authenticate and set context for Gold
uses: redhat-actions/oc-login@v2
- name: OC Setup
uses: ./.github/actions/oc-setup
with:
openshift_server_url: ${{ vars.OPENSHIFT_GOLD_SERVER }}
openshift_token: ${{ secrets.OPENSHIFT_GOLD_TOKEN }}
server: ${{ vars.OPENSHIFT_GOLD_SERVER }}
token: ${{ secrets.OPENSHIFT_GOLD_TOKEN }}
namespace: ${{ vars.OPENSHIFT_NAMESPACE }}
insecure_skip_tls_verify: false

- name: Helm upgrade on OpenShift ${{ github.event.inputs.environment }} Environment
run: |
Expand All @@ -95,27 +90,22 @@ jobs:

update-openshift-golddr:
needs: build-and-push-standbycheck
runs-on: ubuntu-latest
runs-on:
group: Larger Runners - OpenShift Static-IP
name: Deploy Latest Helm Chart to ${{ github.event.inputs.environment }} in GoldDR
environment:
name: ${{ github.event.inputs.environment }}
url: https://${{ github.event.inputs.environment }}-ride.apps.golddr.devops.gov.bc.ca/lbhealth/
steps:
- name: Checkout code
uses: actions/checkout@v7

- name: Install CLI tools from OpenShift Mirror
uses: redhat-actions/openshift-tools-installer@v2
with:
oc: "4"
uses: actions/checkout@v7

- name: Authenticate and set context for GoldDR
uses: redhat-actions/oc-login@v2
- name: OC Setup
uses: ./.github/actions/oc-setup
with:
openshift_server_url: ${{ vars.OPENSHIFT_GOLDDR_SERVER }}
openshift_token: ${{ secrets.OPENSHIFT_GOLDDR_TOKEN }}
server: ${{ vars.OPENSHIFT_GOLDDR_SERVER }}
token: ${{ secrets.OPENSHIFT_GOLDDR_TOKEN }}
namespace: ${{ vars.OPENSHIFT_NAMESPACE }}
insecure_skip_tls_verify: false

- name: Helm upgrade on OpenShift ${{ github.event.inputs.environment }} Environment
run: |
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ jobs:

update-openshift-gold:
needs: [setup, build-and-push]
runs-on: ubuntu-latest
runs-on:
group: Larger Runners - OpenShift Static-IP
name: Deploy to Gold. Tag ${{ needs.setup.outputs.tag_for_helm }}
environment:
name: ${{ needs.setup.outputs.environment_name }}
Expand All @@ -169,7 +170,8 @@ jobs:
# GoldDR Runs after Gold Deployment due to GoldDR DB being read-only replica of Gold
update-openshift-golddr:
needs: [setup, update-openshift-gold]
runs-on: ubuntu-latest
runs-on:
group: Larger Runners - OpenShift Static-IP
name: Deploy to GoldDR. Tag ${{ needs.setup.outputs.tag_for_helm }}
environment:
name: ${{ needs.setup.outputs.environment_name }}
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/uat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ jobs:

update-openshift-gold:
needs: [setup, build-and-push]
runs-on: ubuntu-latest
runs-on:
group: Larger Runners - OpenShift Static-IP
name: Deploy to Gold. Tag ${{ needs.setup.outputs.tag_for_helm }}
environment:
name: ${{ needs.setup.outputs.environment_name }}
Expand All @@ -175,7 +176,8 @@ jobs:
# GoldDR Runs after Gold Deployment due to GoldDR DB being read-only replica of Gold
update-openshift-golddr:
needs: [setup, update-openshift-gold]
runs-on: ubuntu-latest
runs-on:
group: Larger Runners - OpenShift Static-IP
name: Deploy to GoldDR. Tag ${{ needs.setup.outputs.tag_for_helm }}
environment:
name: ${{ needs.setup.outputs.environment_name }}
Expand Down