From fde1ff69794748f7998c63ca529c47a4f2c5c30e Mon Sep 17 00:00:00 2001 From: mhmdksh Date: Tue, 5 Nov 2024 17:52:25 +0400 Subject: [PATCH] Updating the Zero-Deployment Steps in Pipelines, fixing restart all --- .github/workflows/main-deploy-only.yml | 12 ++++++------ .github/workflows/main-pipeline.yml | 12 ++++++------ .github/workflows/main-publish-deploy.yml | 12 ++++++------ .github/workflows/staging-deploy-only.yml | 12 ++++++------ .github/workflows/staging-pipeline.yml | 12 ++++++------ 5 files changed, 30 insertions(+), 30 deletions(-) diff --git a/.github/workflows/main-deploy-only.yml b/.github/workflows/main-deploy-only.yml index f64db0b9b..f586cafcb 100644 --- a/.github/workflows/main-deploy-only.yml +++ b/.github/workflows/main-deploy-only.yml @@ -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 @@ -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 @@ -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 diff --git a/.github/workflows/main-pipeline.yml b/.github/workflows/main-pipeline.yml index 29a0e6710..c5d10f980 100644 --- a/.github/workflows/main-pipeline.yml +++ b/.github/workflows/main-pipeline.yml @@ -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 @@ -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 @@ -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 diff --git a/.github/workflows/main-publish-deploy.yml b/.github/workflows/main-publish-deploy.yml index 1d3895725..07d23d147 100644 --- a/.github/workflows/main-publish-deploy.yml +++ b/.github/workflows/main-publish-deploy.yml @@ -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 @@ -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 @@ -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 diff --git a/.github/workflows/staging-deploy-only.yml b/.github/workflows/staging-deploy-only.yml index b2cad8cd0..744f57f88 100644 --- a/.github/workflows/staging-deploy-only.yml +++ b/.github/workflows/staging-deploy-only.yml @@ -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 @@ -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 @@ -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 diff --git a/.github/workflows/staging-pipeline.yml b/.github/workflows/staging-pipeline.yml index 701574943..fe7a38e58 100644 --- a/.github/workflows/staging-pipeline.yml +++ b/.github/workflows/staging-pipeline.yml @@ -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 @@ -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 @@ -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