Skip to content

Commit

Permalink
Updating the Zero-Deployment Steps in Pipelines, fixing restart all
Browse files Browse the repository at this point in the history
  • Loading branch information
mhmdksh committed Nov 5, 2024
1 parent 0ff615c commit e38b01a
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 16 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/main-deploy-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ jobs:
## First Deployment
docker compose up -d --no-deps --scale qacc-be-graph-ql1=0
docker compose up -d --no-deps --scale qacc-be-job1=0
docker compose up -d
docker compose up --force-recreate -d qacc-be-graph-ql1
docker compose up --force-recreate -d qacc-be-job1
# Wait for qacc-be-graph-ql1 to be healthy (timeout after 5 minutes)
echo "Waiting for qacc-be-graph-ql1 to become healthy..."
Expand Down Expand Up @@ -76,7 +77,8 @@ jobs:
## Second Deployment
docker compose up -d --no-deps --scale qacc-be-graph-ql2=0
docker compose up -d --no-deps --scale qacc-be-job2=0
docker compose up -d
docker compose up --force-recreate -d qacc-be-graph-ql2
docker compose up --force-recreate -d qacc-be-job2
# Wait for qacc-be-graph-ql2 to be healthy (timeout after 5 minutes)
echo "Waiting for qacc-be-graph-ql2 to become healthy..."
Expand Down Expand Up @@ -113,7 +115,8 @@ jobs:
## Third Deployment
docker compose up -d --no-deps --scale qacc-be-graph-ql3=0
docker compose up -d --no-deps --scale qacc-be-job3=0
docker compose up -d
docker compose up --force-recreate -d qacc-be-graph-ql3
docker compose up --force-recreate -d qacc-be-job3
# Wait for qacc-be-graph-ql3 to be healthy (timeout after 5 minutes)
echo "Waiting for qacc-be-graph-ql3 to become healthy..."
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/main-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@ jobs:
## First Deployment
docker compose up -d --no-deps --scale qacc-be-graph-ql1=0
docker compose up -d --no-deps --scale qacc-be-job1=0
docker compose up -d
docker compose up --force-recreate -d qacc-be-graph-ql1
docker compose up --force-recreate -d qacc-be-job1
# Wait for qacc-be-graph-ql1 to be healthy (timeout after 5 minutes)
echo "Waiting for qacc-be-graph-ql1 to become healthy..."
Expand Down Expand Up @@ -218,7 +219,8 @@ jobs:
## Second Deployment
docker compose up -d --no-deps --scale qacc-be-graph-ql2=0
docker compose up -d --no-deps --scale qacc-be-job2=0
docker compose up -d
docker compose up --force-recreate -d qacc-be-graph-ql2
docker compose up --force-recreate -d qacc-be-job2
# Wait for qacc-be-graph-ql2 to be healthy (timeout after 5 minutes)
echo "Waiting for qacc-be-graph-ql2 to become healthy..."
Expand Down Expand Up @@ -255,7 +257,8 @@ jobs:
## Third Deployment
docker compose up -d --no-deps --scale qacc-be-graph-ql3=0
docker compose up -d --no-deps --scale qacc-be-job3=0
docker compose up -d
docker compose up --force-recreate -d qacc-be-graph-ql3
docker compose up --force-recreate -d qacc-be-job3
# Wait for qacc-be-graph-ql3 to be healthy (timeout after 5 minutes)
echo "Waiting for qacc-be-graph-ql3 to become healthy..."
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/main-publish-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ jobs:
## First Deployment
docker compose up -d --no-deps --scale qacc-be-graph-ql1=0
docker compose up -d --no-deps --scale qacc-be-job1=0
docker compose up -d
docker compose up --force-recreate -d qacc-be-graph-ql1
docker compose up --force-recreate -d qacc-be-job1
# Wait for qacc-be-graph-ql1 to be healthy (timeout after 5 minutes)
echo "Waiting for qacc-be-graph-ql1 to become healthy..."
Expand Down Expand Up @@ -123,7 +124,8 @@ jobs:
## Second Deployment
docker compose up -d --no-deps --scale qacc-be-graph-ql2=0
docker compose up -d --no-deps --scale qacc-be-job2=0
docker compose up -d
docker compose up --force-recreate -d qacc-be-graph-ql2
docker compose up --force-recreate -d qacc-be-job2
# Wait for qacc-be-graph-ql2 to be healthy (timeout after 5 minutes)
echo "Waiting for qacc-be-graph-ql2 to become healthy..."
Expand Down Expand Up @@ -160,7 +162,8 @@ jobs:
## Third Deployment
docker compose up -d --no-deps --scale qacc-be-graph-ql3=0
docker compose up -d --no-deps --scale qacc-be-job3=0
docker compose up -d
docker compose up --force-recreate -d qacc-be-graph-ql3
docker compose up --force-recreate -d qacc-be-job3
# Wait for qacc-be-graph-ql3 to be healthy (timeout after 5 minutes)
echo "Waiting for qacc-be-graph-ql3 to become healthy..."
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/staging-deploy-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
git pull origin staging
docker image prune -a --force
docker compose pull
rollout-deploy-1:
needs: deploy
runs-on: ubuntu-latest
Expand All @@ -39,7 +39,8 @@ jobs:
## First Deployment
docker compose up -d --no-deps --scale qacc-be-graph-ql1=0
docker compose up -d --no-deps --scale qacc-be-job1=0
docker compose up -d
docker compose up --force-recreate -d qacc-be-graph-ql1
docker compose up --force-recreate -d qacc-be-job1
# Wait for qacc-be-graph-ql1 to be healthy (timeout after 5 minutes)
echo "Waiting for qacc-be-graph-ql1 to become healthy..."
Expand Down Expand Up @@ -76,7 +77,8 @@ jobs:
## Second Deployment
docker compose up -d --no-deps --scale qacc-be-graph-ql2=0
docker compose up -d --no-deps --scale qacc-be-job2=0
docker compose up -d
docker compose up --force-recreate -d qacc-be-graph-ql2
docker compose up --force-recreate -d qacc-be-job2
# Wait for qacc-be-graph-ql2 to be healthy (timeout after 5 minutes)
echo "Waiting for qacc-be-graph-ql2 to become healthy..."
Expand Down Expand Up @@ -113,7 +115,8 @@ jobs:
## Third Deployment
docker compose up -d --no-deps --scale qacc-be-graph-ql3=0
docker compose up -d --no-deps --scale qacc-be-job3=0
docker compose up -d
docker compose up --force-recreate -d qacc-be-graph-ql3
docker compose up --force-recreate -d qacc-be-job3
# Wait for qacc-be-graph-ql3 to be healthy (timeout after 5 minutes)
echo "Waiting for qacc-be-graph-ql3 to become healthy..."
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/staging-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@ jobs:
## First Deployment
docker compose up -d --no-deps --scale qacc-be-graph-ql1=0
docker compose up -d --no-deps --scale qacc-be-job1=0
docker compose up -d
docker compose up --force-recreate -d qacc-be-graph-ql1
docker compose up --force-recreate -d qacc-be-job1
# Wait for qacc-be-graph-ql1 to be healthy (timeout after 5 minutes)
echo "Waiting for qacc-be-graph-ql1 to become healthy..."
Expand Down Expand Up @@ -218,7 +219,8 @@ jobs:
## Second Deployment
docker compose up -d --no-deps --scale qacc-be-graph-ql2=0
docker compose up -d --no-deps --scale qacc-be-job2=0
docker compose up -d
docker compose up --force-recreate -d qacc-be-graph-ql2
docker compose up --force-recreate -d qacc-be-job2
# Wait for qacc-be-graph-ql2 to be healthy (timeout after 5 minutes)
echo "Waiting for qacc-be-graph-ql2 to become healthy..."
Expand Down Expand Up @@ -255,7 +257,8 @@ jobs:
## Third Deployment
docker compose up -d --no-deps --scale qacc-be-graph-ql3=0
docker compose up -d --no-deps --scale qacc-be-job3=0
docker compose up -d
docker compose up --force-recreate -d qacc-be-graph-ql3
docker compose up --force-recreate -d qacc-be-job3
# Wait for qacc-be-graph-ql3 to be healthy (timeout after 5 minutes)
echo "Waiting for qacc-be-graph-ql3 to become healthy..."
Expand Down

0 comments on commit e38b01a

Please sign in to comment.