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 e38b01a commit fde1ff6
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 30 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/main-deploy-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ jobs:
cd QAcc-BE
## Update each backend service one by one
## 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 down qacc-be-graph-ql1
docker compose down qacc-be-job1
docker compose up --force-recreate -d qacc-be-graph-ql1
docker compose up --force-recreate -d qacc-be-job1
Expand Down Expand Up @@ -75,8 +75,8 @@ jobs:
script: |
cd QAcc-BE
## 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 down qacc-be-graph-ql2
docker compose down qacc-be-job2
docker compose up --force-recreate -d qacc-be-graph-ql2
docker compose up --force-recreate -d qacc-be-job2
Expand Down Expand Up @@ -113,8 +113,8 @@ jobs:
script: |
cd QAcc-BE
## 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 down qacc-be-graph-ql3
docker compose down qacc-be-job3
docker compose up --force-recreate -d qacc-be-graph-ql3
docker compose up --force-recreate -d qacc-be-job3
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/main-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ jobs:
cd QAcc-BE
## Update each backend service one by one
## 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 down qacc-be-graph-ql1
docker compose down qacc-be-job1
docker compose up --force-recreate -d qacc-be-graph-ql1
docker compose up --force-recreate -d qacc-be-job1
Expand Down Expand Up @@ -217,8 +217,8 @@ jobs:
script: |
cd QAcc-BE
## 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 down qacc-be-graph-ql2
docker compose down qacc-be-job2
docker compose up --force-recreate -d qacc-be-graph-ql2
docker compose up --force-recreate -d qacc-be-job2
Expand Down Expand Up @@ -255,8 +255,8 @@ jobs:
script: |
cd QAcc-BE
## 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 down qacc-be-graph-ql3
docker compose down qacc-be-job3
docker compose up --force-recreate -d qacc-be-graph-ql3
docker compose up --force-recreate -d qacc-be-job3
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/main-publish-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ jobs:
cd QAcc-BE
## Update each backend service one by one
## 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 down qacc-be-graph-ql1
docker compose down qacc-be-job1
docker compose up --force-recreate -d qacc-be-graph-ql1
docker compose up --force-recreate -d qacc-be-job1
Expand Down Expand Up @@ -122,8 +122,8 @@ jobs:
script: |
cd QAcc-BE
## 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 down qacc-be-graph-ql2
docker compose down qacc-be-job2
docker compose up --force-recreate -d qacc-be-graph-ql2
docker compose up --force-recreate -d qacc-be-job2
Expand Down Expand Up @@ -160,8 +160,8 @@ jobs:
script: |
cd QAcc-BE
## 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 down qacc-be-graph-ql3
docker compose down qacc-be-job3
docker compose up --force-recreate -d qacc-be-graph-ql3
docker compose up --force-recreate -d qacc-be-job3
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/staging-deploy-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ jobs:
cd QAcc-BE
## Update each backend service one by one
## 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 down qacc-be-graph-ql1
docker compose down qacc-be-job1
docker compose up --force-recreate -d qacc-be-graph-ql1
docker compose up --force-recreate -d qacc-be-job1
Expand Down Expand Up @@ -75,8 +75,8 @@ jobs:
script: |
cd QAcc-BE
## 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 down qacc-be-graph-ql2
docker compose down qacc-be-job2
docker compose up --force-recreate -d qacc-be-graph-ql2
docker compose up --force-recreate -d qacc-be-job2
Expand Down Expand Up @@ -113,8 +113,8 @@ jobs:
script: |
cd QAcc-BE
## 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 down qacc-be-graph-ql3
docker compose down qacc-be-job3
docker compose up --force-recreate -d qacc-be-graph-ql3
docker compose up --force-recreate -d qacc-be-job3
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/staging-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ jobs:
cd QAcc-BE
## Update each backend service one by one
## 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 down qacc-be-graph-ql1
docker compose down qacc-be-job1
docker compose up --force-recreate -d qacc-be-graph-ql1
docker compose up --force-recreate -d qacc-be-job1
Expand Down Expand Up @@ -217,8 +217,8 @@ jobs:
script: |
cd QAcc-BE
## 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 down qacc-be-graph-ql2
docker compose down qacc-be-job2
docker compose up --force-recreate -d qacc-be-graph-ql2
docker compose up --force-recreate -d qacc-be-job2
Expand Down Expand Up @@ -255,8 +255,8 @@ jobs:
script: |
cd QAcc-BE
## 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 down qacc-be-graph-ql3
docker compose down qacc-be-job3
docker compose up --force-recreate -d qacc-be-graph-ql3
docker compose up --force-recreate -d qacc-be-job3
Expand Down

0 comments on commit fde1ff6

Please sign in to comment.