Skip to content

Commit

Permalink
set timeout to 3 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmwang committed Nov 6, 2024
1 parent aeb6c08 commit 76f5d2c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cd-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,5 @@ jobs:
--set nodeEnv=development
# Check container status
kubectl rollout status --timeout=1200s deployment bt-dev-app-${{ needs.compute-sha.outputs.sha_short }}-backend
kubectl rollout status --timeout=1200s deployment bt-dev-app-${{ needs.compute-sha.outputs.sha_short }}-frontend
kubectl rollout status --timeout=180s deployment bt-dev-app-${{ needs.compute-sha.outputs.sha_short }}-backend
kubectl rollout status --timeout=180s deployment bt-dev-app-${{ needs.compute-sha.outputs.sha_short }}-frontend
8 changes: 4 additions & 4 deletions .github/workflows/cd-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
name: Deploy with SSH
needs: [build-push]
runs-on: ubuntu-latest

steps:
- name: SSH and Helm Install
uses: appleboy/ssh-action@v1.0.3
Expand All @@ -38,7 +38,7 @@ jobs:
script: |
set -e # Exit immediately if a command fails
cd ./infra
# Check if the Helm release exists
if helm status bt-prod-app ; then
# Restart deployments if the Helm release exists
Expand All @@ -50,5 +50,5 @@ jobs:
--set host=stanfurdtime.com
# Check container status
kubectl rollout status --timeout=1200s deployment bt-prod-app-backend
kubectl rollout status --timeout=1200s deployment bt-prod-app-frontend
kubectl rollout status --timeout=180s deployment bt-prod-app-backend
kubectl rollout status --timeout=180s deployment bt-prod-app-frontend
8 changes: 4 additions & 4 deletions .github/workflows/cd-stage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
needs: [build-push]
runs-on: ubuntu-latest
environment: staging

steps:
- name: SSH and Helm Install
uses: appleboy/ssh-action@v1.0.3
Expand All @@ -30,7 +30,7 @@ jobs:
script: |
set -e # Exit immediately if a command fails
cd ./infra
# Check if the Helm release exists
if helm status bt-stage-app ; then
# Restart deployments if the Helm release exists
Expand All @@ -47,5 +47,5 @@ jobs:
--set redisUri=redis://bt-stage-redis-master.bt.svc.cluster.local:6379
# Check container status
kubectl rollout status --timeout=1200s deployment bt-stage-app-backend
kubectl rollout status --timeout=1200s deployment bt-stage-app-frontend
kubectl rollout status --timeout=180s deployment bt-stage-app-backend
kubectl rollout status --timeout=180s deployment bt-stage-app-frontend

0 comments on commit 76f5d2c

Please sign in to comment.