From a1dc3b0f650014c6094c77d5082a4167263cedd0 Mon Sep 17 00:00:00 2001 From: yuenmichelle1 Date: Thu, 30 Mar 2023 12:05:58 -0500 Subject: [PATCH] Move Rails 6.1 in staging. And set replicas for staging canary to 0. (#4170) --- .github/workflows/deploy_staging.yml | 9 +++++---- kubernetes/deployment-staging-canary.tmpl | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy_staging.yml b/.github/workflows/deploy_staging.yml index bec673d0a..c7e8b7e66 100644 --- a/.github/workflows/deploy_staging.yml +++ b/.github/workflows/deploy_staging.yml @@ -12,7 +12,8 @@ jobs: uses: zooniverse/ci-cd/.github/workflows/build_and_push_image.yaml@main with: repo_name: panoptes - commit_id: ${{ github.sha }} + commit_id: ${{ github.sha }}-next + file: Dockerfile.rails-next latest: true db_migration_staging: @@ -22,7 +23,7 @@ jobs: with: app_name: panoptes environment: staging - commit_id: ${{ github.sha }} + commit_id: ${{ github.sha }}-next secrets: creds: ${{ secrets.AZURE_AKS }} @@ -33,7 +34,7 @@ jobs: with: app_name: panoptes repo_name: panoptes - commit_id: ${{ github.sha }} + commit_id: ${{ github.sha }}-next environment: staging secrets: creds: ${{ secrets.AZURE_AKS }} @@ -44,7 +45,7 @@ jobs: needs: deploy_staging if: always() with: - commit_id: ${{ github.sha }} + commit_id: ${{ github.sha }}-next job_name: Build and Push Image / build_and_push_image status: ${{ needs.deploy_staging.result }} title: "Panoptes Staging deploy & migration complete" diff --git a/kubernetes/deployment-staging-canary.tmpl b/kubernetes/deployment-staging-canary.tmpl index 13cf6d662..6cc07b96a 100644 --- a/kubernetes/deployment-staging-canary.tmpl +++ b/kubernetes/deployment-staging-canary.tmpl @@ -5,7 +5,7 @@ metadata: labels: app: panoptes-staging-canary-app spec: - replicas: 1 + replicas: 0 selector: matchLabels: app: panoptes-staging-canary-app