Skip to content

Commit

Permalink
Move Rails 6.1 in staging. And set replicas for staging canary to 0. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
yuenmichelle1 authored Mar 30, 2023
1 parent c1317cd commit a1dc3b0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/deploy_staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}

Expand All @@ -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 }}
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/deployment-staging-canary.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
labels:
app: panoptes-staging-canary-app
spec:
replicas: 1
replicas: 0
selector:
matchLabels:
app: panoptes-staging-canary-app
Expand Down

0 comments on commit a1dc3b0

Please sign in to comment.