diff --git a/.github/workflows/build_midas_probe.yaml b/.github/workflows/build_midas_probe.yaml index 91454e795..dd0c4e66b 100644 --- a/.github/workflows/build_midas_probe.yaml +++ b/.github/workflows/build_midas_probe.yaml @@ -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 diff --git a/.github/workflows/demo-deploy_helm_chart.yaml b/.github/workflows/demo-deploy_helm_chart.yaml index 47592e2fb..72a7d2a4c 100644 --- a/.github/workflows/demo-deploy_helm_chart.yaml +++ b/.github/workflows/demo-deploy_helm_chart.yaml @@ -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 diff --git a/.github/workflows/dev-build-endorsement-reminder.yaml b/.github/workflows/dev-build-endorsement-reminder.yaml index b0412f48f..dd7b78661 100644 --- a/.github/workflows/dev-build-endorsement-reminder.yaml +++ b/.github/workflows/dev-build-endorsement-reminder.yaml @@ -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 diff --git a/.github/workflows/dev-build-frontend.yaml b/.github/workflows/dev-build-frontend.yaml index 6b39fb521..e9c11b54b 100644 --- a/.github/workflows/dev-build-frontend.yaml +++ b/.github/workflows/dev-build-frontend.yaml @@ -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 diff --git a/.github/workflows/dev-build-plr-intake.yaml b/.github/workflows/dev-build-plr-intake.yaml index 5716c3f27..fe04db1b6 100644 --- a/.github/workflows/dev-build-plr-intake.yaml +++ b/.github/workflows/dev-build-plr-intake.yaml @@ -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 diff --git a/.github/workflows/dev-build-webapi.yaml b/.github/workflows/dev-build-webapi.yaml index 361d3b81d..ca6733e56 100644 --- a/.github/workflows/dev-build-webapi.yaml +++ b/.github/workflows/dev-build-webapi.yaml @@ -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 diff --git a/.github/workflows/dev-deploy-db-migration.yaml b/.github/workflows/dev-deploy-db-migration.yaml index 5e1277952..0c79ff044 100644 --- a/.github/workflows/dev-deploy-db-migration.yaml +++ b/.github/workflows/dev-deploy-db-migration.yaml @@ -20,21 +20,21 @@ jobs: - name: Authenticate and set context uses: redhat-actions/oc-login@v1.1 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 - \ No newline at end of file + 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 - \ No newline at end of file diff --git a/.github/workflows/dev-deploy-endorsement-reminder.yaml b/.github/workflows/dev-deploy-endorsement-reminder.yaml index 2f4ac156e..8c1c73199 100644 --- a/.github/workflows/dev-deploy-endorsement-reminder.yaml +++ b/.github/workflows/dev-deploy-endorsement-reminder.yaml @@ -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/oc-login@v1.2 - 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: @@ -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 diff --git a/.github/workflows/dev-deploy-helm_chart.yaml b/.github/workflows/dev-deploy-helm_chart.yaml index f142e2dbe..535b4f3d0 100644 --- a/.github/workflows/dev-deploy-helm_chart.yaml +++ b/.github/workflows/dev-deploy-helm_chart.yaml @@ -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/oc-login@v1.1 - 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: @@ -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' @@ -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 diff --git a/.github/workflows/main-build-endorsement-reminder.yaml b/.github/workflows/main-build-endorsement-reminder.yaml index 03d7dc139..47266a7ee 100644 --- a/.github/workflows/main-build-endorsement-reminder.yaml +++ b/.github/workflows/main-build-endorsement-reminder.yaml @@ -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 diff --git a/.github/workflows/main-build-frontend.yaml b/.github/workflows/main-build-frontend.yaml index dbdaf904c..a99d2217f 100644 --- a/.github/workflows/main-build-frontend.yaml +++ b/.github/workflows/main-build-frontend.yaml @@ -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 diff --git a/.github/workflows/main-build-plr-intake.yaml b/.github/workflows/main-build-plr-intake.yaml index 0dec7288f..7476e9963 100644 --- a/.github/workflows/main-build-plr-intake.yaml +++ b/.github/workflows/main-build-plr-intake.yaml @@ -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 diff --git a/.github/workflows/main-build-webapi.yaml b/.github/workflows/main-build-webapi.yaml index 8d923d8f3..b969b9074 100644 --- a/.github/workflows/main-build-webapi.yaml +++ b/.github/workflows/main-build-webapi.yaml @@ -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 diff --git a/.github/workflows/main-deploy-db-migration.yaml b/.github/workflows/main-deploy-db-migration.yaml index ba9244333..e035122ed 100644 --- a/.github/workflows/main-deploy-db-migration.yaml +++ b/.github/workflows/main-deploy-db-migration.yaml @@ -11,33 +11,6 @@ concurrency: cancel-in-progress: true jobs: - db-migration-silver: - runs-on: 'ubuntu-latest' - steps: - - uses: actions/checkout@v1 - - - name: Authenticate and set context - uses: redhat-actions/oc-login@v1.1 - with: - openshift_server_url: ${{secrets.OPENSHIFT_CLUSTER_URL}} - openshift_token: ${{secrets.OPENSHIFT_PIPELINE_SERVICE_ACCOUNT_TOKEN}} - - - name: deply db migration job - silver - run: | - oc project d8a8f9-prod - - echo deleting prod-webapi-migrations job - oc delete job/prod-webapi-migrations -n d8a8f9-prod --ignore-not-found - - echo applying web-api-migration template... - helm template prod charts/webapi -n d8a8f9-prod --values ./deploy/prod_values.yaml -s templates/migrations.yaml --wait --debug| oc apply -n d8a8f9-prod -f - - - echo deleting prod-plr-intake-migrations job - oc delete job/prod-plr-intake-migrations -n d8a8f9-prod --ignore-not-found - - echo applying plr-intake-migration template... - helm template prod charts/plr-intake -n d8a8f9-prod --values ./deploy/prod_values.yaml -s templates/migrations.yaml --wait --debug| oc apply -n d8a8f9-prod -f - - db-migration-gold: runs-on: 'ubuntu-latest' steps: @@ -57,10 +30,10 @@ jobs: oc delete job/prod-webapi-migrations -n f088b1-prod --ignore-not-found echo applying web-api-migration template... - helm template prod charts/webapi -n f088b1-prod --values ./deploy/prod_values_gold.yaml -s templates/migrations.yaml --wait --debug | oc apply -n f088b1-prod -f - + helm template prod charts/webapi -n f088b1-prod --values ./deploy/prod_values.yaml -s templates/migrations.yaml --wait --debug | oc apply -n f088b1-prod -f - echo deleting prod-plr-intake-migrations job oc delete job/prod-plr-intake-migrations -n f088b1-prod --ignore-not-found echo applying plr-intake-migration template... - helm template prod charts/plr-intake -n f088b1-prod --values ./deploy/prod_values_gold.yaml -s templates/migrations.yaml --wait --debug | oc apply -n f088b1-prod -f - + helm template prod charts/plr-intake -n f088b1-prod --values ./deploy/prod_values.yaml -s templates/migrations.yaml --wait --debug | oc apply -n f088b1-prod -f - diff --git a/.github/workflows/main-deploy-endorsement-reminder.yaml b/.github/workflows/main-deploy-endorsement-reminder.yaml index ca57cb8b9..55ad10835 100644 --- a/.github/workflows/main-deploy-endorsement-reminder.yaml +++ b/.github/workflows/main-deploy-endorsement-reminder.yaml @@ -13,26 +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/oc-login@v1.2 - 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-test - - echo installing helm chart... - helm upgrade --wait --namespace d8a8f9-prod --values infra/endorsement_reminder/values.yaml --set env=prod --set global.image.tag=main --set aspnetcore.environment=Production endorsement-reminder infra/endorsement_reminder - helm-deployment-endorsement-reminder-gold: runs-on: 'ubuntu-latest' steps: @@ -50,5 +30,5 @@ jobs: helm list --namespace f088b1-test echo installing helm chart... - helm upgrade --wait --namespace f088b1-prod --values infra/endorsement_reminder/values.yaml --set env=prod --set global.image.tag=main --set aspnetcore.environment=Production --set global.image.registry=image-registry.openshift-image-registry.svc:5000/f088b1-tools endorsement-reminder infra/endorsement_reminder + helm upgrade --wait --namespace f088b1-prod --values infra/endorsement_reminder/values.yaml --set env=prod --set global.image.tag=main --set aspnetcore.environment=Production endorsement-reminder infra/endorsement_reminder diff --git a/.github/workflows/main-deploy_helm_chart Gold.yaml b/.github/workflows/main-deploy_helm_chart Gold.yaml deleted file mode 100644 index 39ab6d293..000000000 --- a/.github/workflows/main-deploy_helm_chart Gold.yaml +++ /dev/null @@ -1,34 +0,0 @@ -name: Deploy Helm Charts - Prod - Gold - -on: - push: - branches: [main] - paths: - - "charts/**" - - "./deploy/prod_values_gold.yaml" - workflow_dispatch: - -# This will terminate builds that are previously, but continuing to run. Saves GHA hours. -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - helm-deployment-gold: - runs-on: 'ubuntu-latest' - steps: - - uses: actions/checkout@v1 - - - name: Authenticate and set context - uses: redhat-actions/oc-login@v1.1 - with: - openshift_server_url: ${{secrets.GOLD_OPENSHIFT_CLUSTER_URL}} - openshift_token: ${{secrets.GOLD_PIPELINE_SERVICE_ACCOUNT_TOKEN}} - - - name: Helm Deploy / install command - run: | - echo current installed helm releases - helm list --namespace f088b1-prod - - echo installing helm chart... - helm upgrade --wait --values ./deploy/prod_values_gold.yaml --namespace f088b1-prod prod charts/pidp --debug diff --git a/.github/workflows/main-deploy_helm_chart.yaml b/.github/workflows/main-deploy_helm_chart.yaml index 3fa2a5642..87ef62f74 100644 --- a/.github/workflows/main-deploy_helm_chart.yaml +++ b/.github/workflows/main-deploy_helm_chart.yaml @@ -1,35 +1,34 @@ -name: Deploy Helm Charts - Prod - -on: - push: - branches: [main] - paths: - - "charts/**" - - "./deploy/prod_values.yaml" - workflow_dispatch: - -# This will terminate builds that are previously, but continuing to run. Saves GHA hours. -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - - helm-deployment: - runs-on: 'ubuntu-latest' - steps: - - uses: actions/checkout@v1 - - - name: Authenticate and set context - uses: redhat-actions/oc-login@v1.1 - 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-prod - - echo installing helm chart... - helm upgrade --wait --values ./deploy/prod_values.yaml --namespace d8a8f9-prod prod charts/pidp --debug +name: Deploy Helm Charts - Prod - Gold + +on: + push: + branches: [main] + paths: + - "charts/**" + - "./deploy/prod_values.yaml" + workflow_dispatch: + +# This will terminate builds that are previously, but continuing to run. Saves GHA hours. +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + helm-deployment-gold: + runs-on: 'ubuntu-latest' + steps: + - uses: actions/checkout@v1 + + - name: Authenticate and set context + uses: redhat-actions/oc-login@v1.1 + with: + openshift_server_url: ${{secrets.GOLD_OPENSHIFT_CLUSTER_URL}} + openshift_token: ${{secrets.GOLD_PIPELINE_SERVICE_ACCOUNT_TOKEN}} + + - name: Helm Deploy / install command + run: | + echo current installed helm releases + helm list --namespace f088b1-prod + + echo installing helm chart... + helm upgrade --wait --values ./deploy/prod_values.yaml --namespace f088b1-prod prod charts/pidp --debug diff --git a/.github/workflows/pr-build-gold.yaml b/.github/workflows/pr-build-gold.yaml deleted file mode 100644 index 0f1c3bd80..000000000 --- a/.github/workflows/pr-build-gold.yaml +++ /dev/null @@ -1,249 +0,0 @@ -name: Build All - PR - GOLD - -on: - workflow_dispatch: - push: - # paths: - # - "workspace/**" - # - "backend/services.plr-intake/**" - # - "backend/services.plr-intake.tests/**" - # - "backend/webapi/**" - # - "backend/webapi.tests/**" - branches-ignore: - - 'develop' - - 'test' - - 'main' - pull_request: - types: [opened] - branches-ignore: - - 'test' - - 'master' - -permissions: read-all - -# This will terminate builds that are previously, but continuing to run. Saves GHA hours. -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - - get-pr-number: - runs-on: ubuntu-latest - defaults: - run: - working-directory: "./workspace" - - outputs: - pr_number: ${{ steps.find-pr.outputs.pr }} - - steps: - - name: "Checkout Code" - uses: actions/checkout@master - - - name: find-pr - id: find-pr - uses: jwalton/gh-find-current-pr@v1 - with: - state: open - - - name: job1 - id: job1 - run: echo "Your PR is ${PR}" - if: success() && steps.find-pr.outputs.number - env: - PR: ${{ steps.find-pr.outputs.pr }} - - Yarn-Lint: - name: Frontend Yarn Lint - runs-on: ubuntu-latest - needs: get-pr-number - if: ${{ always() && !cancelled() && needs.get-pr-number.outputs.pr_number != '' }} - 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 Lint - run: yarn lint:all - - build-and-push-frontend: - name: Frontend Build & Push - runs-on: ubuntu-latest - needs: get-pr-number - if: ${{ always() && !cancelled() && needs.get-pr-number.outputs.pr_number != '' }} - defaults: - run: - working-directory: "./workspace" - - permissions: - contents: read - id-token: write - - 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: YARN Test - run: | - yarn test:ci - - - name: "Docker Build" - run: | - docker build -t image-registry.apps.gold.devops.gov.bc.ca/f088b1-tools/pidp-frontend:pr-${{ needs.get-pr-number.outputs.pr_number }} . - - # Uses the builder service account token - - name: "Docker Login to Gold OCP" - uses: docker/login-action@v2 - with: - registry: image-registry.apps.gold.devops.gov.bc.ca - username: builder - password: ${{ secrets.GOLD_TOOLS_BUILDER_TOKEN }} - - - name: "Push image" - run: | - docker push image-registry.apps.gold.devops.gov.bc.ca/f088b1-tools/pidp-frontend:pr-${{ needs.get-pr-number.outputs.pr_number }} - - unit-test-backend: - needs: get-pr-number - if: ${{ always() && !cancelled() && needs.get-pr-number.outputs.pr_number != '' }} - runs-on: ubuntu-latest - defaults: - run: - working-directory: "./backend" - permissions: - contents: read - id-token: write - - steps: - - name: "Checkout Code" - uses: actions/checkout@master - - name: Setup .NET Core - uses: actions/setup-dotnet@v3 - with: - dotnet-version: 8.0.x - - name: Build backend - run: dotnet build --configuration Release - - name: Run Tests - run: dotnet test --configuration Release - - build-and-push-plr-intake: - name: PLR Intake Backend Build & Push - needs: [get-pr-number, unit-test-backend] - if: ${{ !(contains(needs.*.result, 'failure')) && needs.get-pr-number.outputs.pr_number != '' }} - runs-on: ubuntu-latest - defaults: - run: - working-directory: "./backend/services.plr-intake" - permissions: - contents: read - id-token: write - - steps: - - name: "Checkout Code" - uses: actions/checkout@master - - - name: "Docker Build" - run: | - docker build -t image-registry.apps.gold.devops.gov.bc.ca/f088b1-tools/pidp-plr-intake:pr-${{ needs.get-pr-number.outputs.pr_number }} . - - # Uses the builder service account token - - name: "Docker Login to Gold OCP" - uses: docker/login-action@v2 - with: - registry: image-registry.apps.gold.devops.gov.bc.ca - username: builder - password: ${{ secrets.GOLD_TOOLS_BUILDER_TOKEN }} - - - name: "Push image" - run: | - docker push image-registry.apps.gold.devops.gov.bc.ca/f088b1-tools/pidp-plr-intake:pr-${{ needs.get-pr-number.outputs.pr_number }} - - build-and-push-webapi: - name: WebAPI Backend Build & Push - needs: [get-pr-number, unit-test-backend] - if: ${{ !(contains(needs.*.result, 'failure')) && needs.get-pr-number.outputs.pr_number != '' }} - runs-on: ubuntu-latest - defaults: - run: - working-directory: "./backend/webapi" - permissions: - contents: read - id-token: write - - steps: - - name: "Checkout Code" - uses: actions/checkout@master - - - name: "Docker Build Gold" - run: | - docker build -t image-registry.apps.gold.devops.gov.bc.ca/f088b1-tools/pidp-webapi:pr-${{ needs.get-pr-number.outputs.pr_number }} . - - # Uses the builder service account token - - name: "Docker Login to Gold OCP" - uses: docker/login-action@v2 - with: - registry: image-registry.apps.gold.devops.gov.bc.ca - username: builder - password: ${{ secrets.GOLD_TOOLS_BUILDER_TOKEN }} - - - name: "Push image" - run: | - docker push image-registry.apps.gold.devops.gov.bc.ca/f088b1-tools/pidp-webapi:pr-${{ needs.get-pr-number.outputs.pr_number }} - - helm-deployment: - needs: [build-and-push-webapi, build-and-push-plr-intake, build-and-push-frontend] - runs-on: 'ubuntu-latest' - permissions: - contents: read - id-token: write - steps: - - uses: actions/checkout@master - - - name: Authenticate and set context - uses: redhat-actions/oc-login@v1.2 - with: - openshift_server_url: ${{secrets.GOLD_OPENSHIFT_CLUSTER_URL}} - openshift_token: ${{secrets.GOLD_PIPELINE_SERVICE_ACCOUNT_TOKEN}} - - - name: Get pr number from GH cli command (pushing to pr) - if: ${{ github.event.number == ''}} - run: echo "pr_number=$(gh pr view --json number -q .number || echo "")" >> "$GITHUB_ENV" - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Get pr number from github.event.number (opening a pr) - if: ${{ github.event.number != ''}} - run: echo "pr_number=${{ github.event.number }}" >> "$GITHUB_ENV" - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Helm Deploy / install command - run: | - echo current installed helm releases - helm list --namespace f088b1-dev - - echo installing helm chart... - helm upgrade --install --wait --values ./deploy/pr_values.yaml --set global.license_plate=f088b1 --set global.image.registry=image-registry.openshift-image-registry.svc:5000/f088b1-tools --namespace f088b1-dev pr-${{ env.pr_number }} charts/pidp --debug --set global.image.tag=pr-${{ env.pr_number }} diff --git a/.github/workflows/pr-build.yaml b/.github/workflows/pr-build.yaml index 2fb7c5a52..cde4caa8e 100644 --- a/.github/workflows/pr-build.yaml +++ b/.github/workflows/pr-build.yaml @@ -1,4 +1,4 @@ -name: Build All - PR +name: Build All - PR - GOLD on: workflow_dispatch: @@ -112,19 +112,19 @@ jobs: - name: "Docker Build" run: | - docker build -t image-registry.apps.silver.devops.gov.bc.ca/d8a8f9-tools/pidp-frontend:pr-${{ needs.get-pr-number.outputs.pr_number }} . + docker build -t image-registry.apps.gold.devops.gov.bc.ca/f088b1-tools/pidp-frontend:pr-${{ needs.get-pr-number.outputs.pr_number }} . # 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/pidp-frontend:pr-${{ needs.get-pr-number.outputs.pr_number }} + docker push image-registry.apps.gold.devops.gov.bc.ca/f088b1-tools/pidp-frontend:pr-${{ needs.get-pr-number.outputs.pr_number }} unit-test-backend: needs: get-pr-number @@ -167,19 +167,19 @@ jobs: - name: "Docker Build" run: | - docker build -t image-registry.apps.silver.devops.gov.bc.ca/d8a8f9-tools/pidp-plr-intake:pr-${{ needs.get-pr-number.outputs.pr_number }} . + docker build -t image-registry.apps.gold.devops.gov.bc.ca/f088b1-tools/pidp-plr-intake:pr-${{ needs.get-pr-number.outputs.pr_number }} . # 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/pidp-plr-intake:pr-${{ needs.get-pr-number.outputs.pr_number }} + docker push image-registry.apps.gold.devops.gov.bc.ca/f088b1-tools/pidp-plr-intake:pr-${{ needs.get-pr-number.outputs.pr_number }} build-and-push-webapi: name: WebAPI Backend Build & Push @@ -197,22 +197,22 @@ jobs: - name: "Checkout Code" uses: actions/checkout@master - - name: "Docker Build" + - name: "Docker Build Gold" run: | - docker build -t image-registry.apps.silver.devops.gov.bc.ca/d8a8f9-tools/pidp-webapi:pr-${{ needs.get-pr-number.outputs.pr_number }} . + docker build -t image-registry.apps.gold.devops.gov.bc.ca/f088b1-tools/pidp-webapi:pr-${{ needs.get-pr-number.outputs.pr_number }} . # 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/pidp-webapi:pr-${{ needs.get-pr-number.outputs.pr_number }} - + docker push image-registry.apps.gold.devops.gov.bc.ca/f088b1-tools/pidp-webapi:pr-${{ needs.get-pr-number.outputs.pr_number }} + helm-deployment: needs: [build-and-push-webapi, build-and-push-plr-intake, build-and-push-frontend] runs-on: 'ubuntu-latest' @@ -225,8 +225,8 @@ jobs: - name: Authenticate and set context uses: redhat-actions/oc-login@v1.2 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: Get pr number from GH cli command (pushing to pr) if: ${{ github.event.number == ''}} @@ -243,7 +243,7 @@ jobs: - name: Helm Deploy / install command run: | echo current installed helm releases - helm list --namespace d8a8f9-dev + helm list --namespace f088b1-dev echo installing helm chart... - helm upgrade --install --wait --values ./deploy/pr_values.yaml --namespace d8a8f9-dev pr-${{ env.pr_number }} charts/pidp --debug --set global.image.tag=pr-${{ env.pr_number }} + helm upgrade --install --wait --values ./deploy/pr_values.yaml --namespace f088b1-dev pr-${{ env.pr_number }} charts/pidp --debug --set global.image.tag=pr-${{ env.pr_number }} diff --git a/.github/workflows/pr-deploy-cleanup Gold.yaml b/.github/workflows/pr-deploy-cleanup Gold.yaml deleted file mode 100644 index ddcc88968..000000000 --- a/.github/workflows/pr-deploy-cleanup Gold.yaml +++ /dev/null @@ -1,47 +0,0 @@ -name: Remove Helm deployment on PR merge - Gold -on: - workflow_dispatch: - pull_request: - types: [closed] - branches-ignore: - - 'test' - - 'master' -jobs: - remove-deployment: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Authenticate and set context - uses: redhat-actions/oc-login@v1.1 - with: - openshift_server_url: ${{secrets.GOLD_OPENSHIFT_CLUSTER_URL}} - openshift_token: ${{secrets.GOLD_PIPELINE_SERVICE_ACCOUNT_TOKEN}} - - - name: Remove Helm deployment - run: | - helm uninstall pr-${{ github.event.number }} --namespace f088b1-dev - - - name: Remove PR imagestream - run: | - oc tag -d pidp-frontend:pr-${{ github.event.number }} -n f088b1-tools - oc tag -d pidp-plr-intake:pr-${{ github.event.number }} -n f088b1-tools - oc tag -d pidp-webapi:pr-${{ github.event.number }} -n f088b1-tools - - merge_job: - - # this job will only run if the PR has been merged - if: github.event.pull_request.merged == true - runs-on: ubuntu-latest - steps: - - run: | - echo PR #${{ github.event.number }} has been merged - - close_job: - # this job will only run if the PR has been closed without being merged - if: github.event.pull_request.merged == false - runs-on: ubuntu-latest - steps: - - run: | - echo PR #${{ github.event.number }} has been closed without being merged \ No newline at end of file diff --git a/.github/workflows/pr-deploy-cleanup.yaml b/.github/workflows/pr-deploy-cleanup.yaml index 81ac92e80..ddcc88968 100644 --- a/.github/workflows/pr-deploy-cleanup.yaml +++ b/.github/workflows/pr-deploy-cleanup.yaml @@ -1,47 +1,47 @@ -name: Remove Helm deployment on PR merge -on: - workflow_dispatch: - pull_request: - types: [closed] - branches-ignore: - - 'test' - - 'master' -jobs: - remove-deployment: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Authenticate and set context - uses: redhat-actions/oc-login@v1.1 - with: - openshift_server_url: ${{secrets.OPENSHIFT_CLUSTER_URL}} - openshift_token: ${{secrets.OPENSHIFT_PIPELINE_SERVICE_ACCOUNT_TOKEN}} - - - name: Remove Helm deployment - run: | - helm uninstall pr-${{ github.event.number }} --namespace d8a8f9-dev - - - name: Remove PR imagestream - run: | - oc tag -d pidp-frontend:pr-${{ github.event.number }} -n d8a8f9-tools - oc tag -d pidp-plr-intake:pr-${{ github.event.number }} -n d8a8f9-tools - oc tag -d pidp-webapi:pr-${{ github.event.number }} -n d8a8f9-tools - - merge_job: - - # this job will only run if the PR has been merged - if: github.event.pull_request.merged == true - runs-on: ubuntu-latest - steps: - - run: | - echo PR #${{ github.event.number }} has been merged - - close_job: - # this job will only run if the PR has been closed without being merged - if: github.event.pull_request.merged == false - runs-on: ubuntu-latest - steps: - - run: | +name: Remove Helm deployment on PR merge - Gold +on: + workflow_dispatch: + pull_request: + types: [closed] + branches-ignore: + - 'test' + - 'master' +jobs: + remove-deployment: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Authenticate and set context + uses: redhat-actions/oc-login@v1.1 + with: + openshift_server_url: ${{secrets.GOLD_OPENSHIFT_CLUSTER_URL}} + openshift_token: ${{secrets.GOLD_PIPELINE_SERVICE_ACCOUNT_TOKEN}} + + - name: Remove Helm deployment + run: | + helm uninstall pr-${{ github.event.number }} --namespace f088b1-dev + + - name: Remove PR imagestream + run: | + oc tag -d pidp-frontend:pr-${{ github.event.number }} -n f088b1-tools + oc tag -d pidp-plr-intake:pr-${{ github.event.number }} -n f088b1-tools + oc tag -d pidp-webapi:pr-${{ github.event.number }} -n f088b1-tools + + merge_job: + + # this job will only run if the PR has been merged + if: github.event.pull_request.merged == true + runs-on: ubuntu-latest + steps: + - run: | + echo PR #${{ github.event.number }} has been merged + + close_job: + # this job will only run if the PR has been closed without being merged + if: github.event.pull_request.merged == false + runs-on: ubuntu-latest + steps: + - run: | echo PR #${{ github.event.number }} has been closed without being merged \ No newline at end of file diff --git a/.github/workflows/test-build-endorsement-reminder.yaml b/.github/workflows/test-build-endorsement-reminder.yaml index 9e75188f0..91199042e 100644 --- a/.github/workflows/test-build-endorsement-reminder.yaml +++ b/.github/workflows/test-build-endorsement-reminder.yaml @@ -17,25 +17,6 @@ concurrency: cancel-in-progress: true jobs: - promote-image-to-test-silver: - name: WebAPI Backend Promote to test - 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 dev to test - run: | - oc -n d8a8f9-tools tag \ - d8a8f9-tools/endorsement-reminder:${{ env.ORIG_TAG }} \ - d8a8f9-tools/endorsement-reminder:${{ env.PROMOTE_TAG }} - promote-image-to-test-gold: name: WebAPI Backend Promote to test - Gold runs-on: ubuntu-latest diff --git a/.github/workflows/test-build-frontend.yaml b/.github/workflows/test-build-frontend.yaml index 35e660346..8ffc4b3c9 100644 --- a/.github/workflows/test-build-frontend.yaml +++ b/.github/workflows/test-build-frontend.yaml @@ -17,25 +17,6 @@ concurrency: cancel-in-progress: true jobs: - promote-image-to-test-silver: - name: Frontend Promote to test - 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 dev to test - run: | - oc -n d8a8f9-tools tag \ - d8a8f9-tools/pidp-frontend:${{ env.ORIG_TAG }} \ - d8a8f9-tools/pidp-frontend:${{ env.PROMOTE_TAG }} - promote-image-to-test-gold: name: Frontend Promote to test - Gold runs-on: ubuntu-latest diff --git a/.github/workflows/test-build-plr-intake.yaml b/.github/workflows/test-build-plr-intake.yaml index af91a5236..8a766de86 100644 --- a/.github/workflows/test-build-plr-intake.yaml +++ b/.github/workflows/test-build-plr-intake.yaml @@ -18,24 +18,6 @@ concurrency: cancel-in-progress: true jobs: - promote-image-to-test-silver: - name: Plr Intake Backend Promote to test - 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 dev to test - 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-test-gold: name: Plr Intake Backend Promote to test - Gold diff --git a/.github/workflows/test-build-webapi.yaml b/.github/workflows/test-build-webapi.yaml index 074393d90..0a71c56b5 100644 --- a/.github/workflows/test-build-webapi.yaml +++ b/.github/workflows/test-build-webapi.yaml @@ -18,25 +18,6 @@ concurrency: cancel-in-progress: true jobs: - promote-image-to-test-silver: - name: WebAPI Backend Promote to test - 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 dev to test - run: | - oc -n d8a8f9-tools tag \ - d8a8f9-tools/pidp-webapi:${{ env.ORIG_TAG }} \ - d8a8f9-tools/pidp-webapi:${{ env.PROMOTE_TAG }} - promote-image-to-test-gold: name: WebAPI Backend Promote to test - Gold runs-on: ubuntu-latest diff --git a/.github/workflows/test-deploy-db-migration.yaml b/.github/workflows/test-deploy-db-migration.yaml index cd2c2d72d..500958caf 100644 --- a/.github/workflows/test-deploy-db-migration.yaml +++ b/.github/workflows/test-deploy-db-migration.yaml @@ -23,18 +23,18 @@ jobs: openshift_server_url: ${{secrets.OPENSHIFT_CLUSTER_URL}} openshift_token: ${{secrets.OPENSHIFT_PIPELINE_SERVICE_ACCOUNT_TOKEN}} - - name: deply db migration job into d8a8f9-test + - name: deply db migration job into f088b1-test run: | - oc project d8a8f9-test + oc project f088b1-test echo deleting test-webapi-migrations job oc delete job/test-webapi-migrations --ignore-not-found echo applying web-api-migration template... - helm template test charts/webapi -n d8a8f9-test --values ./deploy/test_values.yaml -s templates/migrations.yaml --wait --debug| oc apply -f - + helm template test charts/webapi -n f088b1-test --values ./deploy/test_values.yaml -s templates/migrations.yaml --wait --debug| oc apply -f - echo deleting test-plr-intake-migrations job oc delete job/test-plr-intake-migrations --ignore-not-found echo applying plr-intake-migration template... - helm template test charts/plr-intake -n d8a8f9-test --values ./deploy/test_values.yaml -s templates/migrations.yaml --wait --debug| oc apply -f - \ No newline at end of file + helm template test charts/plr-intake -n f088b1-test --values ./deploy/test_values.yaml -s templates/migrations.yaml --wait --debug| oc apply -f - \ No newline at end of file diff --git a/.github/workflows/test-deploy-endorsement-reminder.yaml b/.github/workflows/test-deploy-endorsement-reminder.yaml index fa899689a..371b8d4ee 100644 --- a/.github/workflows/test-deploy-endorsement-reminder.yaml +++ b/.github/workflows/test-deploy-endorsement-reminder.yaml @@ -13,26 +13,6 @@ concurrency: cancel-in-progress: true jobs: - - helm-deployment-endorsement-reminder: - runs-on: 'ubuntu-latest' - steps: - - uses: actions/checkout@v4 - - - name: Authenticate and set context - uses: redhat-actions/oc-login@v1.2 - 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-test - - echo installing helm chart... - helm upgrade --wait --namespace d8a8f9-test --values infra/endorsement_reminder/values.yaml endorsement-reminder infra/endorsement_reminder - helm-deployment-endorsement-reminder-gold: runs-on: 'ubuntu-latest' steps: diff --git a/.github/workflows/test-deploy_helm_chart.yaml b/.github/workflows/test-deploy_helm_chart.yaml index b8715487f..9c53e6524 100644 --- a/.github/workflows/test-deploy_helm_chart.yaml +++ b/.github/workflows/test-deploy_helm_chart.yaml @@ -14,25 +14,6 @@ concurrency: cancel-in-progress: true jobs: - helm-deployment: - runs-on: 'ubuntu-latest' - steps: - - uses: actions/checkout@v1 - - - name: Authenticate and set context - uses: redhat-actions/oc-login@v1.1 - 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-test - - echo installing helm chart... - helm upgrade --wait --values ./deploy/test_values.yaml --namespace d8a8f9-test test charts/pidp --debug - helm-deployment-gold: runs-on: 'ubuntu-latest' steps: @@ -50,7 +31,7 @@ jobs: helm list --namespace f088b1-test echo installing helm chart... - helm upgrade --wait --values ./deploy/test_values.yaml --set global.license_plate=f088b1 --set global.image.registry=image-registry.openshift-image-registry.svc:5000/f088b1-tools --namespace f088b1-test test charts/pidp --debug + helm upgrade --wait --values ./deploy/test_values.yaml --namespace f088b1-test test charts/pidp --debug helm-deployment-golddr: runs-on: 'ubuntu-latest' steps: @@ -68,4 +49,4 @@ jobs: helm list --namespace f088b1-test echo installing helm chart... - helm upgrade --wait --values ./deploy/test_values.yaml --set global.license_plate=f088b1 --set global.image.registry=image-registry.openshift-image-registry.svc:5000/f088b1-tools --namespace f088b1-test test charts/pidp --debug + helm upgrade --wait --values ./deploy/test_values.yaml --namespace f088b1-test test charts/pidp --debug diff --git a/charts/frontend/values.yaml b/charts/frontend/values.yaml index e9cbd49f9..600e89f28 100644 --- a/charts/frontend/values.yaml +++ b/charts/frontend/values.yaml @@ -6,9 +6,9 @@ global: vanityURL: "healthprovideridentityportal.gov.bc.ca" commit_sha: "" image: - registry: image-registry.openshift-image-registry.svc:5000/d8a8f9-tools + registry: image-registry.openshift-image-registry.svc:5000/f088b1-tools tag: latest - license_plate: "d8a8f9" + license_plate: "f088b1" replicaCount: 1 diff --git a/charts/nginx/values.yaml b/charts/nginx/values.yaml index dacdf1dc1..34b558994 100644 --- a/charts/nginx/values.yaml +++ b/charts/nginx/values.yaml @@ -885,7 +885,7 @@ metrics: ## @section fluentbit parameters fluentbit: - enabled: true + enabled: false imageRegistry: docker.io/fluent/fluent-bit:3.0.3-debug imagePullPolicy: IfNotPresent securityContext: diff --git a/charts/pidp/charts/frontend-0.1.1.tgz b/charts/pidp/charts/frontend-0.1.1.tgz index 3a65e0ac0..ef51c5596 100644 Binary files a/charts/pidp/charts/frontend-0.1.1.tgz and b/charts/pidp/charts/frontend-0.1.1.tgz differ diff --git a/charts/pidp/charts/nginx-9.7.3.tgz b/charts/pidp/charts/nginx-9.7.3.tgz index c71aae711..a70171cfc 100644 Binary files a/charts/pidp/charts/nginx-9.7.3.tgz and b/charts/pidp/charts/nginx-9.7.3.tgz differ diff --git a/charts/pidp/charts/plr-intake-0.1.2.tgz b/charts/pidp/charts/plr-intake-0.1.2.tgz index 4610c6cff..1ed5c3db4 100644 Binary files a/charts/pidp/charts/plr-intake-0.1.2.tgz and b/charts/pidp/charts/plr-intake-0.1.2.tgz differ diff --git a/charts/pidp/charts/webapi-0.1.5.tgz b/charts/pidp/charts/webapi-0.1.5.tgz index e91565e78..d993ea808 100644 Binary files a/charts/pidp/charts/webapi-0.1.5.tgz and b/charts/pidp/charts/webapi-0.1.5.tgz differ diff --git a/charts/pidp/values.yaml b/charts/pidp/values.yaml index d59a81730..a7f460112 100644 --- a/charts/pidp/values.yaml +++ b/charts/pidp/values.yaml @@ -6,9 +6,9 @@ global: vanityURL: "healthprovideridentityportal.gov.bc.ca" commit_sha: "" image: - registry: image-registry.openshift-image-registry.svc:5000/d8a8f9-tools + registry: image-registry.openshift-image-registry.svc:5000/f088b1-tools tag: latest - license_plate: "d8a8f9" + license_plate: "f088b1" # used for creating/dropping databases image: @@ -252,7 +252,4 @@ tolerations: [] affinity: {} rabbitmq: - autoCreate: false - -routes: - enabled: false \ No newline at end of file + autoCreate: false \ No newline at end of file diff --git a/charts/plr-intake/values.yaml b/charts/plr-intake/values.yaml index 622923b4e..91b2bf6f7 100644 --- a/charts/plr-intake/values.yaml +++ b/charts/plr-intake/values.yaml @@ -6,9 +6,9 @@ global: vanityURL: "healthprovideridentityportal.gov.bc.ca" commit_sha: "" image: - registry: image-registry.openshift-image-registry.svc:5000/d8a8f9-tools + registry: image-registry.openshift-image-registry.svc:5000/f088b1-tools tag: latest - license_plate: "d8a8f9" + license_plate: "f088b1" replicaCount: 1 diff --git a/charts/webapi/values.yaml b/charts/webapi/values.yaml index 62fcdb23e..131ffc594 100644 --- a/charts/webapi/values.yaml +++ b/charts/webapi/values.yaml @@ -6,9 +6,9 @@ global: vanityURL: "healthprovideridentityportal.gov.bc.ca" commit_sha: "" image: - registry: image-registry.openshift-image-registry.svc:5000/d8a8f9-tools + registry: image-registry.openshift-image-registry.svc:5000/f088b1-tools tag: latest - license_plate: "d8a8f9" + license_plate: "f088b1" replicaCount: 1 aspnetcore: @@ -103,7 +103,7 @@ rabbitmq: fluentbit: - enabled: true + enabled: false imageRegistry: docker.io/fluent/fluent-bit:3.0.3-debug imagePullPolicy: IfNotPresent securityContext: diff --git a/deploy/dev_values.yaml b/deploy/dev_values.yaml index b1841d60d..efd65caf7 100644 --- a/deploy/dev_values.yaml +++ b/deploy/dev_values.yaml @@ -3,9 +3,9 @@ global: vanityURL: "healthprovideridentityportal.gov.bc.ca" commit_sha: "" image: - registry: image-registry.openshift-image-registry.svc:5000/d8a8f9-tools + registry: image-registry.openshift-image-registry.svc:5000/f088b1-tools tag: develop - license_plate: "d8a8f9" + license_plate: "f088b1" database: autoCreate: false @@ -20,8 +20,6 @@ redis: nginx: replicaCount: 1 - fluentbit: - enabled: false frontend: replicaCount: 1 @@ -34,8 +32,6 @@ webapi: replicaCount: 1 aspnetcore: environment: Staging - fluentbit: - enabled: false plr-intake: replicaCount: 1 diff --git a/deploy/pr_values.yaml b/deploy/pr_values.yaml index a3cdd02ec..1d6a9aef1 100644 --- a/deploy/pr_values.yaml +++ b/deploy/pr_values.yaml @@ -3,7 +3,7 @@ global: vanityURL: "healthprovideridentityportal.gov.bc.ca" commit_sha: "" image: - registry: image-registry.openshift-image-registry.svc:5000/d8a8f9-tools + registry: image-registry.openshift-image-registry.svc:5000/f088b1-tools tag: dev license_plate: "f088b1" @@ -20,8 +20,7 @@ redis: nginx: replicaCount: 1 - fluentbit: - enabled: false + frontend: replicaCount: 1 @@ -32,8 +31,6 @@ webapi: replicaCount: 1 aspnetcore: environment: Staging - fluentbit: - enabled: false plr-intake: replicaCount: 1 diff --git a/deploy/prod_values.yaml b/deploy/prod_values.yaml index 110696160..fe7726b25 100644 --- a/deploy/prod_values.yaml +++ b/deploy/prod_values.yaml @@ -3,9 +3,11 @@ global: vanityURL: "healthprovideridentityportal.gov.bc.ca" commit_sha: "" image: + registry: image-registry.openshift-image-registry.svc:5000/f088b1-tools tag: main - license_plate: "d8a8f9" - + license_plate: f088b1 + + database: autoCreate: false # databaseHost: dev-patroni @@ -19,7 +21,9 @@ redis: nginx: replicaCount: 3 - + fluentbit: + enabled: true + frontend: replicaCount: 3 settings: @@ -31,6 +35,8 @@ webapi: replicaCount: 3 aspnetcore: environment: Production + fluentbit: + enabled: true plr-intake: replicaCount: 2 diff --git a/deploy/prod_values_gold.yaml b/deploy/prod_values_gold.yaml deleted file mode 100644 index fe7726b25..000000000 --- a/deploy/prod_values_gold.yaml +++ /dev/null @@ -1,46 +0,0 @@ -# PR Helm values -global: - vanityURL: "healthprovideridentityportal.gov.bc.ca" - commit_sha: "" - image: - registry: image-registry.openshift-image-registry.svc:5000/f088b1-tools - tag: main - license_plate: f088b1 - - -database: - autoCreate: false - # databaseHost: dev-patroni -# existingSecret: dev-patroni-secret - -redis: - enabled: false - auth: - existingSecret: redis - existingSecretPasswordKey: database-password - -nginx: - replicaCount: 3 - fluentbit: - enabled: true - -frontend: - replicaCount: 3 - settings: - environmentName: prod - keycloak: - url: https://common-logon.hlth.gov.bc.ca/auth - -webapi: - replicaCount: 3 - aspnetcore: - environment: Production - fluentbit: - enabled: true - -plr-intake: - replicaCount: 2 - -rabbitmq: - autoCreate: true - host: rabbitmq://pidp:password@rabbitmq:5672/ \ No newline at end of file diff --git a/deploy/test_values.yaml b/deploy/test_values.yaml index a33cafc65..729cff3c6 100644 --- a/deploy/test_values.yaml +++ b/deploy/test_values.yaml @@ -3,9 +3,9 @@ global: vanityURL: "healthprovideridentityportal.gov.bc.ca" commit_sha: "" image: - registry: image-registry.openshift-image-registry.svc:5000/d8a8f9-tools + registry: image-registry.openshift-image-registry.svc:5000/f088b1-tools tag: test - license_plate: "d8a8f9" + license_plate: "f088b1" database: autoCreate: false @@ -20,8 +20,6 @@ redis: nginx: replicaCount: 2 - fluentbit: - enabled: false frontend: replicaCount: 3 @@ -34,8 +32,6 @@ webapi: replicaCount: 3 aspnetcore: environment: Staging - fluentbit: - enabled: false plr-intake: replicaCount: 2 diff --git a/infra/endorsement_reminder/values.yaml b/infra/endorsement_reminder/values.yaml index e3aba441b..09296b674 100644 --- a/infra/endorsement_reminder/values.yaml +++ b/infra/endorsement_reminder/values.yaml @@ -3,8 +3,9 @@ cron: 0 8 * * * global: vanityURL: "healthprovideridentityportal.gov.bc.ca" commit_sha: "" + license_plate: "f088b1" image: - registry: image-registry.openshift-image-registry.svc:5000/d8a8f9-tools + registry: image-registry.openshift-image-registry.svc:5000/f088b1-tools repository: endorsement-reminder # Overrides the image tag whose default is the chart appVersion. tag: develop diff --git a/infra/fluentbit/fluentbit-configmap.yaml b/infra/fluentbit/fluentbit-configmap.yaml index 004f5646a..ebf7c608f 100644 --- a/infra/fluentbit/fluentbit-configmap.yaml +++ b/infra/fluentbit/fluentbit-configmap.yaml @@ -179,12 +179,12 @@ parameters: description: Namespace displayName: Namespace required: true - value: d8a8f9-dev + value: f088b1-prod - name: OC_ENV description: OpenShift Environment displayName: OpenShift Environment required: true - value: dev + value: prod - name: SLACK_ERROR_NOTIFICATION_WEBHOOK description: Slack error notification Webhook URL displayName: Slack Webhook URL diff --git a/infra/metabase/README.md b/infra/metabase/README.md index e36ff4c42..d6e2721ba 100644 --- a/infra/metabase/README.md +++ b/infra/metabase/README.md @@ -8,17 +8,17 @@ `oc login ` ### 3. Switch to the desired project -`oc project d8a8f9-tools` +`oc project f088b1-tools` ### 4. Tag the downloaded image -`docker tag metabase/metabase:latest image-registry.apps.silver.devops.gov.bc.ca/d8a8f9-tools/metabase:` +`docker tag metabase/metabase:latest image-registry.apps.silver.devops.gov.bc.ca/f088b1-tools/metabase:` ### 5. Login to docker and Push the image to the metabase imagestream in tools namespace -`docker login -u 'oc whoami' -p image-registry.apps.silver.devops.gov.bc.ca/d8a8f9-tools` +`docker login -u 'oc whoami' -p image-registry.apps.gold.devops.gov.bc.ca/f088b1-tools` -`docker push image-registry.apps.silver.devops.gov.bc.ca/d8a8f9-tools/metabase:` +`docker push image-registry.apps.gold.devops.gov.bc.ca/f088b1-tools/metabase:` ### 6. Point the latest image in metabase imagestream to the newly downlowded image diff --git a/infra/metabase/metabase-template.yml b/infra/metabase/metabase-template.yml index 8c9524609..971efc76f 100644 --- a/infra/metabase/metabase-template.yml +++ b/infra/metabase/metabase-template.yml @@ -51,7 +51,7 @@ parameters: displayName: Metabase Namespace description: The OpenShift Namespace where the Metabase ImageStream resides. required: true - value: d8a8f9-tools + value: f088b1-tools - name: METABASE_CPU_REQUEST description: Minimal CPU needed to run displayName: Metabase CPU Request diff --git a/infra/pipelines/cicd-pipeline.yaml b/infra/pipelines/cicd-pipeline.yaml index e820e0269..c42765a4e 100644 --- a/infra/pipelines/cicd-pipeline.yaml +++ b/infra/pipelines/cicd-pipeline.yaml @@ -2,7 +2,7 @@ apiVersion: tekton.dev/v1beta1 kind: Pipeline metadata: name: cicd-pipeline - namespace: d8a8f9-tools + namespace: f088b1-tools spec: params: - name: git-url @@ -10,13 +10,13 @@ spec: default: develop - name: git-short-sha - name: image-registry - default: image-registry.openshift-image-registry.svc:5000/d8a8f9-tools + default: image-registry.openshift-image-registry.svc:5000/f088b1-tools - name: image-tag default: develop - name: release_name default: dev - name: release_namespace - default: d8a8f9-dev + default: f088b1-dev - name: release_version default: "v0.1.0" - name: values_file diff --git a/infra/pipelines/pipeline-cicd-pipeline-testing.yaml b/infra/pipelines/pipeline-cicd-pipeline-testing.yaml index 84e22bb64..0c4a5006d 100644 --- a/infra/pipelines/pipeline-cicd-pipeline-testing.yaml +++ b/infra/pipelines/pipeline-cicd-pipeline-testing.yaml @@ -2,7 +2,7 @@ kind: Pipeline metadata: name: cicd-pipeline-testing - namespace: d8a8f9-tools + namespace: f088b1-tools spec: params: - default: 'git@github.com:bcgov/moh-pidp.git' @@ -14,7 +14,7 @@ spec: - default: 224169b name: git-short-sha type: string - - default: 'image-registry.openshift-image-registry.svc:5000/d8a8f9-tools' + - default: 'image-registry.openshift-image-registry.svc:5000/f088b1-tools' name: image-registry type: string - default: pr-82 @@ -23,7 +23,7 @@ spec: - default: pr-82 name: release_name type: string - - default: d8a8f9-dev + - default: f088b1-dev name: release_namespace type: string - default: v0.1.0 @@ -144,7 +144,7 @@ spec: - '--build-arg' - SONAR_BUILDSTRING=$(params.git-short-sha) - '--build-arg' - - 'SONAR_HOST=http://sonarqube.d8a8f9-tools.svc.cluster.local:9000' + - 'SONAR_HOST=http://sonarqube.f088b1-tools.svc.cluster.local:9000' runAfter: - zap-scan-webapi taskRef: @@ -198,7 +198,7 @@ spec: - '--build-arg' - SONAR_BUILDSTRING=$(params.git-short-sha) - '--build-arg' - - 'SONAR_HOST=http://sonarqube.d8a8f9-tools.svc.cluster.local:9000' + - 'SONAR_HOST=http://sonarqube.f088b1-tools.svc.cluster.local:9000' runAfter: - zap-plr-intake taskRef: diff --git a/infra/pipelines/pr-cleanup-pipeline.yaml b/infra/pipelines/pr-cleanup-pipeline.yaml index ebe8f4f28..65f9179f4 100644 --- a/infra/pipelines/pr-cleanup-pipeline.yaml +++ b/infra/pipelines/pr-cleanup-pipeline.yaml @@ -2,12 +2,12 @@ apiVersion: tekton.dev/v1beta1 kind: Pipeline metadata: name: pr-cleanup-pipeline - namespace: d8a8f9-tools + namespace: f088b1-tools spec: params: - name: release_name - name: release_namespace - default: d8a8f9-dev + default: f088b1-dev workspaces: - name: source tasks: diff --git a/infra/resources/github-pr-event-listener.yaml b/infra/resources/github-pr-event-listener.yaml index abd048b80..0c52c0c46 100644 --- a/infra/resources/github-pr-event-listener.yaml +++ b/infra/resources/github-pr-event-listener.yaml @@ -2,7 +2,7 @@ apiVersion: triggers.tekton.dev/v1alpha1 kind: EventListener metadata: name: github-pr - namespace: d8a8f9-tools + namespace: f088b1-tools spec: namespaceSelector: {} podTemplate: {} diff --git a/infra/tasks/test-frontend.yaml b/infra/tasks/test-frontend.yaml index 5d119fb0d..98d9a1721 100644 --- a/infra/tasks/test-frontend.yaml +++ b/infra/tasks/test-frontend.yaml @@ -7,7 +7,7 @@ metadata: tekton.dev/platforms: 'linux/amd64,linux/s390x,linux/ppc64le' tekton.dev/tags: build-tool name: test-frontend - namespace: d8a8f9-tools + namespace: f088b1-tools labels: app.kubernetes.io/version: '0.1' spec: @@ -25,7 +25,7 @@ spec: description: The node image you want to use. name: IMAGE type: string - - default: 'http://sonarqube.d8a8f9-tools.svc.cluster.local:9000' + - default: 'http://sonarqube.f088b1-tools.svc.cluster.local:9000' name: SONAR_HOST type: string - default: sonarqube-login @@ -87,7 +87,7 @@ spec: key: $(params.SONAR_LOGIN_KEY_SECRET_KEY) name: $(params.SONAR_LOGIN_KEY_SECRET) image: >- - image-registry.openshift-image-registry.svc:5000/d8a8f9-tools/sonar-scanner-cli:4.7.0 + image-registry.openshift-image-registry.svc:5000/f088b1-tools/sonar-scanner-cli:4.7.0 name: sonar-scan resources: limits: diff --git a/infra/tasks/zap-scan.yaml b/infra/tasks/zap-scan.yaml index 7ba34ca3d..ae03da9df 100644 --- a/infra/tasks/zap-scan.yaml +++ b/infra/tasks/zap-scan.yaml @@ -17,7 +17,7 @@ metadata: operation: Update time: '2022-09-28T06:02:28Z' name: zap-scan - namespace: d8a8f9-tools + namespace: f088b1-tools resourceVersion: '4702162475' uid: ec1e02fa-1db7-4fee-9620-a7f6b68dae9b spec: @@ -28,7 +28,7 @@ spec: name: PATH_CONTEXT type: string - default: >- - image-registry.openshift-image-registry.svc:5000/d8a8f9-tools/zap2docker-stable:2.11.1-bcgov-1 + image-registry.openshift-image-registry.svc:5000/f088b1-tools/zap2docker-stable:2.11.1-bcgov-1 description: The node image you want to use. name: IMAGE type: string diff --git a/infra/triggers/github-pr-trigger-template.yaml b/infra/triggers/github-pr-trigger-template.yaml index ae73a0cae..ae7574baa 100644 --- a/infra/triggers/github-pr-trigger-template.yaml +++ b/infra/triggers/github-pr-trigger-template.yaml @@ -2,7 +2,7 @@ apiVersion: triggers.tekton.dev/v1alpha1 kind: TriggerTemplate metadata: name: github-pr-trigger-template - namespace: d8a8f9-tools + namespace: f088b1-tools spec: params: - name: git-revision @@ -39,7 +39,7 @@ spec: - name: release_name value: $(tt.params.git-pr-number) - name: release_namespace - value: d8a8f9-dev + value: f088b1-dev - name: values_file value: deploy/pr_values.yaml workspaces: diff --git a/infra/triggers/github-push-trigger-template.yaml b/infra/triggers/github-push-trigger-template.yaml index cf63a5851..d320eef2b 100644 --- a/infra/triggers/github-push-trigger-template.yaml +++ b/infra/triggers/github-push-trigger-template.yaml @@ -2,7 +2,7 @@ apiVersion: triggers.tekton.dev/v1alpha1 kind: TriggerTemplate metadata: name: github-push-trigger-template - namespace: d8a8f9-tools + namespace: f088b1-tools spec: params: - name: git-revision diff --git a/infra/triggers/pr-cleanup-trigger-template.yaml b/infra/triggers/pr-cleanup-trigger-template.yaml index f8ad23d12..4f235cd61 100644 --- a/infra/triggers/pr-cleanup-trigger-template.yaml +++ b/infra/triggers/pr-cleanup-trigger-template.yaml @@ -2,7 +2,7 @@ apiVersion: triggers.tekton.dev/v1alpha1 kind: TriggerTemplate metadata: name: pr-cleanup-trigger-template - namespace: d8a8f9-tools + namespace: f088b1-tools spec: params: - name: git-pr-number @@ -20,7 +20,7 @@ spec: - name: release_name value: $(tt.params.git-pr-number) - name: release_namespace - value: d8a8f9-dev + value: f088b1-dev workspaces: - name: source emptyDir: {} diff --git a/scripts/pod_cleanup.sh b/scripts/pod_cleanup.sh index f7c36005b..665ba5a60 100755 --- a/scripts/pod_cleanup.sh +++ b/scripts/pod_cleanup.sh @@ -6,5 +6,5 @@ echo ${pvc_arr[1]} for i in "${pvc_arr[@]}" do - kubectl delete pod $i --grace-period=0 --force --namespace d8a8f9-tools + kubectl delete pod $i --grace-period=0 --force --namespace f088b1-tools done