From 27a911ad01839078afdbd0b4be84935b5244799b Mon Sep 17 00:00:00 2001 From: Conor Brady Date: Mon, 16 Sep 2024 10:40:11 -0700 Subject: [PATCH] Remove test namespace deployment (#3929) --- .github/workflows/deployment.yml | 64 -------------------------------- 1 file changed, 64 deletions(-) diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 8fa0d2afa..b8bd93432 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -294,67 +294,3 @@ jobs: run: | oc login "${{ secrets.OPENSHIFT_CLUSTER }}" --token="${{ secrets.OC4_DEV_TOKEN }}" PROJ_TARGET="e1e498-dev" PROJ_TOOLS="e1e498-tools" PROJ_DEV="e1e498-dev" bash openshift/scripts/oc_provision_c_haines_cronjob.sh ${SUFFIX} apply - - prepare-test-database: - name: Prepare Test Database - runs-on: ubuntu-22.04 - steps: - - name: Set Variables - shell: bash - run: | - echo "SUFFIX=pr-${{ github.event.number }}" >> $GITHUB_ENV - - - name: Checkout - uses: actions/checkout@v4 - - - name: Deploy PostGIS instance - shell: bash - run: | - oc login "${{ secrets.OPENSHIFT_CLUSTER }}" --token="${{ secrets.OC4_TEST_TOKEN }}" - EPHEMERAL_STORAGE=True PROJ_TARGET=e1e498-test APP_USER="wps" IMAGE_STREAM_NAMESPACE=e1e498-tools bash openshift/scripts/oc_provision_db.sh ${SUFFIX} apply - - deploy-test: - name: Deploy to Test - if: github.triggering_actor != 'renovate' - needs: [build-api-image, build-web-image, prepare-test-database] - runs-on: ubuntu-22.04 - steps: - - name: Set Variables - shell: bash - run: | - echo "SUFFIX=pr-${{ github.event.number }}" >> $GITHUB_ENV - - - name: Checkout - uses: actions/checkout@v4 - - - name: Deploy API to Test - shell: bash - run: | - oc login "${{ secrets.OPENSHIFT_CLUSTER }}" --token="${{ secrets.OC4_TEST_TOKEN }}" - MODULE_NAME=api PROJ_TARGET="e1e498-test" ENVIRONMENT="-test" VANITY_DOMAIN="${SUFFIX}-test-psu.apps.silver.devops.gov.bc.ca" SECOND_LEVEL_DOMAIN="apps.silver.devops.gov.bc.ca" USE_WFWX="True" bash openshift/scripts/oc_deploy.sh ${SUFFIX} apply - - # Just run 1/3 EnvCan cronjobs so there's some model data in DB for comparison against P3 actuals and forecasts - # Don't need all model data - - name: Environment Canada RDPS cronjob (Donald) - shell: bash - run: | - oc login "${{ secrets.OPENSHIFT_CLUSTER }}" --token="${{ secrets.OC4_TEST_TOKEN }}" - PROJ_TARGET="e1e498-test" bash openshift/scripts/oc_provision_ec_rdps_cronjob.sh ${SUFFIX} apply - - test-configure-nats-server-name: - name: Configure nats server name in test - runs-on: ubuntu-22.04 - steps: - - name: Set Variables - shell: bash - run: | - echo "SUFFIX=pr-${{ github.event.number }}" >> $GITHUB_ENV - - - name: Checkout - uses: actions/checkout@v4 - - - name: Configure - shell: bash - run: | - oc login "${{ secrets.OPENSHIFT_CLUSTER }}" --token="${{ secrets.OC4_TEST_TOKEN }}" - PROJ_TARGET="e1e498-test" bash openshift/scripts/oc_provision_nats_server_config.sh ${SUFFIX} apply