Skip to content

Commit

Permalink
Delete silver github workflows (#639)
Browse files Browse the repository at this point in the history
* Delete silver github workflows

* zip helm charts
  • Loading branch information
rshourou authored Dec 6, 2024
1 parent 8e92c39 commit d4e27ef
Show file tree
Hide file tree
Showing 56 changed files with 185 additions and 933 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_midas_probe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
helm upgrade --install --values ./midas-probe/values.yaml --set environment=${{ github.event.inputs.Environment }} midas-probe midas-probe
build-midas-goldDR:
name: Build Midas Probe-GOLD
name: Build Midas Probe-GOLDDR
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/demo-deploy_helm_chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Helm Deploy / install command
run: |
echo current installed helm releases
helm list --namespace d8a8f9-test
helm list --namespace f088b1-test
echo installing helm chart...
helm upgrade --wait --values ./deploy/demo_values.yaml --namespace d8a8f9-test demo charts/pidp --debug
helm upgrade --wait --values ./deploy/demo_values.yaml --namespace f088b1-test demo charts/pidp --debug
10 changes: 5 additions & 5 deletions .github/workflows/dev-build-endorsement-reminder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ jobs:
- name: "Docker Build"
working-directory: "./backend"
run: |
docker build -f ./services.endorsement-reminder/Dockerfile -t image-registry.apps.silver.devops.gov.bc.ca/d8a8f9-tools/endorsement-reminder:develop .
docker build -f ./services.endorsement-reminder/Dockerfile -t image-registry.apps.gold.devops.gov.bc.ca/f088b1-tools/endorsement-reminder:develop .
# Uses the builder service account token
- name: "Docker Login to Silver OCP"
- name: "Docker Login to GOLD OCP"
uses: docker/login-action@v2
with:
registry: image-registry.apps.silver.devops.gov.bc.ca
registry: image-registry.apps.gold.devops.gov.bc.ca
username: builder
password: ${{ secrets.SILVER_TOOLS_BUILDER_TOKEN }}
password: ${{ secrets.GOLD_TOOLS_BUILDER_TOKEN }}

- name: "Push image"
run: |
docker push image-registry.apps.silver.devops.gov.bc.ca/d8a8f9-tools/endorsement-reminder:develop
docker push image-registry.apps.gold.devops.gov.bc.ca/f088b1-tools/endorsement-reminder:develop
39 changes: 0 additions & 39 deletions .github/workflows/dev-build-frontend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,45 +13,6 @@ concurrency:
cancel-in-progress: true

jobs:
build-frontend-silver:
name: Frontend Build - Silver
runs-on: ubuntu-latest
defaults:
run:
working-directory: "./workspace"
steps:
- name: "Checkout Code"
uses: actions/checkout@master

- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x

- name: YARN Install
run: |
yarn install
- name: YARN Build
run: |
yarn build
- name: "Docker Build"
run: |
docker build -t image-registry.apps.silver.devops.gov.bc.ca/d8a8f9-tools/pidp-frontend:develop .
# Uses the builder service account token
- name: "Docker Login to Silver OCP"
uses: docker/login-action@v2
with:
registry: image-registry.apps.silver.devops.gov.bc.ca
username: builder
password: ${{ secrets.SILVER_TOOLS_BUILDER_TOKEN }}

- name: "Push image"
run: |
docker push image-registry.apps.silver.devops.gov.bc.ca/d8a8f9-tools/pidp-frontend:develop
build-frontend-gold:
name: Frontend Build - Gold
runs-on: ubuntu-latest
Expand Down
26 changes: 0 additions & 26 deletions .github/workflows/dev-build-plr-intake.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,32 +14,6 @@ concurrency:
cancel-in-progress: true

jobs:
build-plr-intake-silver:
name: PLR Intake Backend Build - Silver
runs-on: ubuntu-latest
defaults:
run:
working-directory: "./backend/services.plr-intake"
steps:
- name: "Checkout Code"
uses: actions/checkout@master

- name: "Docker Build"
run: |
docker build -t image-registry.apps.silver.devops.gov.bc.ca/d8a8f9-tools/pidp-plr-intake:develop .
# Uses the builder service account token
- name: "Docker Login to Silver OCP"
uses: docker/login-action@v2
with:
registry: image-registry.apps.silver.devops.gov.bc.ca
username: builder
password: ${{ secrets.SILVER_TOOLS_BUILDER_TOKEN }}

- name: "Push image"
run: |
docker push image-registry.apps.silver.devops.gov.bc.ca/d8a8f9-tools/pidp-plr-intake:develop
build-plr-intake-gold:
name: PLR Intake Backend Build - Gold
runs-on: ubuntu-latest
Expand Down
25 changes: 0 additions & 25 deletions .github/workflows/dev-build-webapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,6 @@ concurrency:
cancel-in-progress: true

jobs:
build-webapi-silver:
name: WebAPI Backend Build - Silver
runs-on: ubuntu-latest
defaults:
run:
working-directory: "./backend/webapi"
steps:
- name: "Checkout Code"
uses: actions/checkout@master

- name: "Docker Build"
run: |
docker build -t image-registry.apps.silver.devops.gov.bc.ca/d8a8f9-tools/pidp-webapi:develop .
# Uses the builder service account token
- name: "Docker Login to Silver OCP"
uses: docker/login-action@v2
with:
registry: image-registry.apps.silver.devops.gov.bc.ca
username: builder
password: ${{ secrets.SILVER_TOOLS_BUILDER_TOKEN }}

- name: "Push image"
run: |
docker push image-registry.apps.silver.devops.gov.bc.ca/d8a8f9-tools/pidp-webapi:develop
build-webapi-gold:
name: WebAPI Backend Build - Gold
runs-on: ubuntu-latest
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/dev-deploy-db-migration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,21 @@ jobs:
- name: Authenticate and set context
uses: redhat-actions/[email protected]
with:
openshift_server_url: ${{secrets.OPENSHIFT_CLUSTER_URL}}
openshift_token: ${{secrets.OPENSHIFT_PIPELINE_SERVICE_ACCOUNT_TOKEN}}
openshift_server_url: ${{secrets.GOLD_OPENSHIFT_CLUSTER_URL}}
openshift_token: ${{secrets.GOLD_PIPELINE_SERVICE_ACCOUNT_TOKEN}}

- name: deply db migration job
run: |
oc project d8a8f9-dev
oc project f088b1-dev
echo deleting dev-webapi-migrations job
oc delete job/dev-webapi-migrations --ignore-not-found
echo applying web-api-migration template...
helm template dev charts/webapi -n d8a8f9-dev --values ./deploy/dev_values.yaml -s templates/migrations.yaml --wait --debug| oc apply -n d8a8f9-dev -f -
helm template dev charts/webapi -n f088b1-dev --values ./deploy/dev_values.yaml -s templates/migrations.yaml --wait --debug| oc apply -n f088b1-dev -f -
echo deleting dev-plr-intake-migrations job
oc delete job/dev-plr-intake-migrations --ignore-not-found
echo applying plr-intake-migration template...
helm template dev charts/plr-intake -n d8a8f9-dev --values ./deploy/dev_values.yaml -s templates/migrations.yaml --wait --debug| oc apply -n d8a8f9-dev -f -
helm template dev charts/plr-intake -n f088b1-dev --values ./deploy/dev_values.yaml -s templates/migrations.yaml --wait --debug| oc apply -n f088b1-dev -f -
21 changes: 1 addition & 20 deletions .github/workflows/dev-deploy-endorsement-reminder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,6 @@ concurrency:
cancel-in-progress: true

jobs:
helm-deployment-endorsement-reminder-silver:
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v4

- name: Authenticate and set context
uses: redhat-actions/[email protected]
with:
openshift_server_url: ${{secrets.OPENSHIFT_CLUSTER_URL}}
openshift_token: ${{secrets.OPENSHIFT_PIPELINE_SERVICE_ACCOUNT_TOKEN}}

- name: Helm Deploy Upgrade
run: |
echo current installed helm releases
helm list --namespace d8a8f9-dev
echo installing helm chart...
helm upgrade --wait --namespace d8a8f9-dev --values infra/endorsement_reminder/values.yaml endorsement-reminder infra/endorsement_reminder
helm-deployment-endorsement-reminder-gold:
runs-on: 'ubuntu-latest'
steps:
Expand All @@ -49,4 +30,4 @@ jobs:
helm list --namespace f088b1-dev
echo installing helm chart...
helm upgrade --wait --namespace f088b1-dev --values infra/endorsement_reminder/values.yaml --set global.image.registry=image-registry.openshift-image-registry.svc:5000/f088b1-tools endorsement-reminder infra/endorsement_reminder
helm upgrade --wait --namespace f088b1-dev --values infra/endorsement_reminder/values.yaml endorsement-reminder infra/endorsement_reminder
24 changes: 2 additions & 22 deletions .github/workflows/dev-deploy-helm_chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,6 @@ concurrency:
cancel-in-progress: true

jobs:

helm-deployment-silver:
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v1

- name: Authenticate and set context
uses: redhat-actions/[email protected]
with:
openshift_server_url: ${{secrets.OPENSHIFT_CLUSTER_URL}}
openshift_token: ${{secrets.OPENSHIFT_PIPELINE_SERVICE_ACCOUNT_TOKEN}}

- name: Helm Deploy / install command
run: |
echo current installed helm releases
helm list --namespace d8a8f9-dev
echo installing helm chart...
helm upgrade --wait --values ./deploy/dev_values.yaml --namespace d8a8f9-dev dev charts/pidp --debug
helm-deployment-gold:
runs-on: 'ubuntu-latest'
steps:
Expand All @@ -51,7 +31,7 @@ jobs:
helm list --namespace f088b1-dev
echo installing helm chart...
helm upgrade --wait --values ./deploy/dev_values.yaml --set global.image.registry=image-registry.openshift-image-registry.svc:5000/f088b1-tools --set global.license_plate=f088b1 --namespace f088b1-dev dev charts/pidp --debug
helm upgrade --wait --values ./deploy/dev_values.yaml --namespace f088b1-dev dev charts/pidp --debug
helm-deployment-goldDR:
runs-on: 'ubuntu-latest'
Expand All @@ -71,5 +51,5 @@ jobs:
helm list --namespace f088b1-dev
echo installing helm chart...
helm upgrade --wait --values ./deploy/dev_values.yaml --set global.image.registry=image-registry.openshift-image-registry.svc:5000/f088b1-tools --set global.license_plate=f088b1 --namespace f088b1-dev dev charts/pidp --debug
helm upgrade --wait --values ./deploy/dev_values.yaml --namespace f088b1-dev dev charts/pidp --debug
18 changes: 0 additions & 18 deletions .github/workflows/main-build-endorsement-reminder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,6 @@ concurrency:
cancel-in-progress: true

jobs:
promote-image-to-prod-silver:
name: WebAPI Backend Promote to prod - Silver
runs-on: ubuntu-latest
steps:
- name: Install oc
uses: redhat-actions/openshift-tools-installer@v1
with:
oc: "4.7"

- name: oc login
run: |
oc login --token=${{ secrets.OPENSHIFT_GHA_SERVICE_ACCOUNT_TOKEN }} --server=${{ secrets.OPENSHIFT_CLUSTER_URL }}
- name: Promote webapi from test to prod
run: |
oc -n d8a8f9-tools tag \
d8a8f9-tools/endorsement-reminder:${{ env.ORIG_TAG }} \
d8a8f9-tools/endorsement-reminder:${{ env.PROMOTE_TAG }}
promote-image-to-prod-gold:
name: WebAPI Backend Promote to prod - Gold
runs-on: ubuntu-latest
Expand Down
21 changes: 1 addition & 20 deletions .github/workflows/main-build-frontend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,7 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
promote-image-to-prod-silver:
name: WebAPI Backend Promote to prod- Silver
runs-on: ubuntu-latest
steps:
- name: Install oc
uses: redhat-actions/openshift-tools-installer@v1
with:
oc: "4.7"

- name: oc login
run: |
oc login --token=${{ secrets.OPENSHIFT_GHA_SERVICE_ACCOUNT_TOKEN }} --server=${{ secrets.OPENSHIFT_CLUSTER_URL }}
- name: Promote frontend from test to prod
run: |
oc -n d8a8f9-tools tag \
d8a8f9-tools/pidp-frontend:${{ env.ORIG_TAG }} \
d8a8f9-tools/pidp-frontend:${{ env.PROMOTE_TAG }}
jobs:
promote-image-to-prod-gold:
name: WebAPI Backend Promote to prod- Gold
runs-on: ubuntu-latest
Expand Down
18 changes: 0 additions & 18 deletions .github/workflows/main-build-plr-intake.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,6 @@ concurrency:
cancel-in-progress: true

jobs:
promote-image-to-prod-silver:
name: Plr Intake Backend Promote to prod - Silver
runs-on: ubuntu-latest
steps:
- name: Install oc
uses: redhat-actions/openshift-tools-installer@v1
with:
oc: "4.7"

- name: oc login
run: |
oc login --token=${{ secrets.OPENSHIFT_GHA_SERVICE_ACCOUNT_TOKEN }} --server=${{ secrets.OPENSHIFT_CLUSTER_URL }}
- name: Promote plr-intake from test to prod
run: |
oc -n d8a8f9-tools tag \
d8a8f9-tools/pidp-plr-intake:${{ env.ORIG_TAG }} \
d8a8f9-tools/pidp-plr-intake:${{ env.PROMOTE_TAG }}
promote-image-to-prod-gold:
name: Plr Intake Backend Promote to prod - Gold
runs-on: ubuntu-latest
Expand Down
19 changes: 0 additions & 19 deletions .github/workflows/main-build-webapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,6 @@ concurrency:
cancel-in-progress: true

jobs:
promote-image-to-prod-silver:
name: WebAPI Backend Promote to prod - Silver
runs-on: ubuntu-latest
steps:
- name: Install oc
uses: redhat-actions/openshift-tools-installer@v1
with:
oc: "4.7"

- name: oc login
run: |
oc login --token=${{ secrets.OPENSHIFT_GHA_SERVICE_ACCOUNT_TOKEN }} --server=${{ secrets.OPENSHIFT_CLUSTER_URL }}
- name: Promote webapi from test to prod
run: |
oc -n d8a8f9-tools tag \
d8a8f9-tools/pidp-webapi:${{ env.ORIG_TAG }} \
d8a8f9-tools/pidp-webapi:${{ env.PROMOTE_TAG }}
promote-image-to-prod-gold:
name: WebAPI Backend Promote to prod - Gold
runs-on: ubuntu-latest
Expand Down
Loading

0 comments on commit d4e27ef

Please sign in to comment.