From dc92577d1393328e10050cc08d134ef7c127a636 Mon Sep 17 00:00:00 2001 From: Nawaz Dhandala Date: Sat, 5 Feb 2022 19:20:19 +0000 Subject: [PATCH] fix deploy files --- .github/workflows/accounts-production-deploy.yaml | 2 +- .github/workflows/accounts-staging-deploy.yaml | 8 ++++---- .github/workflows/admin-dashboard-production-deploy.yaml | 2 +- .github/workflows/admin-dashboard-staging-deploy.yaml | 6 +++--- .github/workflows/api-docs-production-deploy.yaml | 2 +- .github/workflows/api-docs-staging-deploy.yaml | 6 +++--- .../workflows/application-scanner-production-deploy.yaml | 2 +- .github/workflows/application-scanner-staging-deploy.yaml | 6 +++--- .github/workflows/backend-production-deploy.yaml | 2 +- .github/workflows/backend-staging-deploy.yaml | 6 +++--- .../workflows/container-scanner-production-deploy.yaml | 2 +- .github/workflows/container-scanner-staging-deploy.yaml | 6 +++--- .github/workflows/dashboard-production-deploy.yaml | 2 +- .github/workflows/dashboard-staging-deploy.yaml | 6 +++--- .github/workflows/data-ingestor-production-deploy.yaml | 2 +- .github/workflows/data-ingestor-staging-deploy.yaml | 6 +++--- .github/workflows/haraka-production-deploy.yaml | 2 +- .github/workflows/haraka-staging-deploy.yaml | 6 +++--- .github/workflows/helm-chart-production-deploy.yaml | 2 +- .github/workflows/helm-chart-staging-deploy.yaml | 6 +++--- .github/workflows/home-production-deploy.yaml | 2 +- .github/workflows/home-staging-deploy.yaml | 6 +++--- .github/workflows/http-test-server-production-deploy.yaml | 2 +- .github/workflows/http-test-server-staging-deploy.yaml | 6 +++--- .github/workflows/init-script-production-deploy.yaml | 2 +- .github/workflows/init-script-staging-deploy.yaml | 4 ++-- .github/workflows/licensing-production-deploy.yaml | 2 +- .github/workflows/licensing-staging-deploy.yaml | 6 +++--- .../workflows/lighthouse-runner-production-deploy.yaml | 2 +- .github/workflows/lighthouse-runner-staging-deploy.yaml | 6 +++--- .github/workflows/probe-api-production-deploy.yaml | 2 +- .github/workflows/probe-api-staging-deploy.yaml | 6 +++--- .github/workflows/probe-production-deploy.yaml | 2 +- .github/workflows/probe-staging-deploy.yaml | 8 ++++---- .github/workflows/realtime-production-deploy.yaml | 2 +- .github/workflows/realtime-staging-deploy.yaml | 6 +++--- .github/workflows/script-runner-production-deploy.yaml | 2 +- .github/workflows/script-runner-staging-deploy.yaml | 6 +++--- .github/workflows/status-page-production-deploy.yaml | 2 +- .github/workflows/status-page-staging-deploy.yaml | 6 +++--- ci/init-script/test.yaml | 2 +- ci/spec/init-script/deploy.yaml | 6 +++--- ci/spec/probe-api/deploy.yaml | 2 +- ci/spec/probe/deploy.yaml | 2 +- ci/spec/realtime/deploy.yaml | 2 +- ci/spec/status-page/deploy.yaml | 2 +- 46 files changed, 89 insertions(+), 89 deletions(-) diff --git a/.github/workflows/accounts-production-deploy.yaml b/.github/workflows/accounts-production-deploy.yaml index 1a8c5a4331..30e5e5c3fa 100644 --- a/.github/workflows/accounts-production-deploy.yaml +++ b/.github/workflows/accounts-production-deploy.yaml @@ -32,7 +32,7 @@ jobs: - run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD - run: sudo docker buildx create --use - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/accounts:4.0.$CI_PIPELINE_ID --push -f ./accounts/Dockerfile . - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/accounts:master --push -f ./accounts/Dockerfile . + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/accounts:latest --push -f ./accounts/Dockerfile . - run: sudo kubectl set image deployment/fi-accounts fi-accounts=oneuptime/accounts:4.0.$CI_PIPELINE_ID # Cleanup - run: chmod +x ./ci/scripts/deployment-cleanup.sh diff --git a/.github/workflows/accounts-staging-deploy.yaml b/.github/workflows/accounts-staging-deploy.yaml index 229f835ac3..acb4b84b2a 100644 --- a/.github/workflows/accounts-staging-deploy.yaml +++ b/.github/workflows/accounts-staging-deploy.yaml @@ -32,11 +32,11 @@ jobs: # Build and deploy accounts. - run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD - run: sudo docker buildx create --use - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/accounts:4.0.$CI_PIPELINE_ID --push -f ./accounts/Dockerfile . - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/accounts:master --push -f ./accounts/Dockerfile . + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/accounts:4.0.$CI_PIPELINE_ID-staging --push -f ./accounts/Dockerfile . + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/accounts:staging --push -f ./accounts/Dockerfile . - run: sudo kubectl config get-contexts - run: kubectl config get-contexts - - run: sudo kubectl set image deployment/fi-accounts fi-accounts=oneuptime/accounts:4.0.$CI_PIPELINE_ID + - run: sudo kubectl set image deployment/fi-accounts fi-accounts=oneuptime/accounts:4.0.$CI_PIPELINE_ID-staging # Publish to GitHub registry. - name: Login to GitHub Container Registry uses: docker/login-action@v1 @@ -44,7 +44,7 @@ jobs: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - run: sudo docker push ghcr.io/oneuptime/accounts:4.0.$CI_PIPELINE_ID + - run: sudo docker push ghcr.io/oneuptime/accounts:4.0.$CI_PIPELINE_ID-staging # Cleanup - run: chmod +x ./ci/scripts/deployment-cleanup.sh - run: ./ci/scripts/deployment-cleanup.sh diff --git a/.github/workflows/admin-dashboard-production-deploy.yaml b/.github/workflows/admin-dashboard-production-deploy.yaml index 3eee135f3d..f2ff3e9f70 100644 --- a/.github/workflows/admin-dashboard-production-deploy.yaml +++ b/.github/workflows/admin-dashboard-production-deploy.yaml @@ -33,7 +33,7 @@ jobs: - run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD - run: sudo docker buildx create --use - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/admin-dashboard:4.0.$CI_PIPELINE_ID --push -f ./admin-dashboard/Dockerfile . - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/admin-dashboard:master --push -f ./admin-dashboard/Dockerfile . + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/admin-dashboard:latest --push -f ./admin-dashboard/Dockerfile . - run: sudo kubectl set image deployment/fi-admin fi-admin=oneuptime/admin-dashboard:4.0.$CI_PIPELINE_ID # Cleanup - run: chmod +x ./ci/scripts/deployment-cleanup.sh diff --git a/.github/workflows/admin-dashboard-staging-deploy.yaml b/.github/workflows/admin-dashboard-staging-deploy.yaml index eb19af2f64..3d79f07836 100644 --- a/.github/workflows/admin-dashboard-staging-deploy.yaml +++ b/.github/workflows/admin-dashboard-staging-deploy.yaml @@ -32,9 +32,9 @@ jobs: # Build and deploy admin-dashboard. - run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD - run: sudo docker buildx create --use - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/admin-dashboard:4.0.$CI_PIPELINE_ID --push -f ./admin-dashboard/Dockerfile . - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/admin-dashboard:master --push -f ./admin-dashboard/Dockerfile . - - run: sudo kubectl set image deployment/fi-admin fi-admin=oneuptime/admin-dashboard:4.0.$CI_PIPELINE_ID + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/admin-dashboard:4.0.$CI_PIPELINE_ID-staging --push -f ./admin-dashboard/Dockerfile . + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/admin-dashboard:staging --push -f ./admin-dashboard/Dockerfile . + - run: sudo kubectl set image deployment/fi-admin fi-admin=oneuptime/admin-dashboard:4.0.$CI_PIPELINE_ID-staging # Cleanup - run: chmod +x ./ci/scripts/deployment-cleanup.sh - run: ./ci/scripts/deployment-cleanup.sh diff --git a/.github/workflows/api-docs-production-deploy.yaml b/.github/workflows/api-docs-production-deploy.yaml index e474bbcd3f..ed65df4616 100644 --- a/.github/workflows/api-docs-production-deploy.yaml +++ b/.github/workflows/api-docs-production-deploy.yaml @@ -33,7 +33,7 @@ jobs: - run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD - run: sudo docker buildx create --use - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/api-docs:4.0.$CI_PIPELINE_ID --push -f ./api-docs/Dockerfile . - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/api-docs:master --push -f ./api-docs/Dockerfile . + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/api-docs:latest --push -f ./api-docs/Dockerfile . - run: sudo kubectl set image deployment/fi-api-docs fi-api-docs=oneuptime/api-docs:4.0.$CI_PIPELINE_ID # Cleanup - run: chmod +x ./ci/scripts/deployment-cleanup.sh diff --git a/.github/workflows/api-docs-staging-deploy.yaml b/.github/workflows/api-docs-staging-deploy.yaml index 084d5b51f9..61fcc96e05 100644 --- a/.github/workflows/api-docs-staging-deploy.yaml +++ b/.github/workflows/api-docs-staging-deploy.yaml @@ -32,9 +32,9 @@ jobs: # Build and deploy api-docs. - run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD - run: sudo docker buildx create --use - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/api-docs:4.0.$CI_PIPELINE_ID --push -f ./api-docs/Dockerfile . - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/api-docs:master --push -f ./api-docs/Dockerfile . - - run: sudo kubectl set image deployment/fi-admin fi-admin=oneuptime/api-docs:4.0.$CI_PIPELINE_ID + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/api-docs:4.0.$CI_PIPELINE_ID-staging --push -f ./api-docs/Dockerfile . + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/api-docs:staging --push -f ./api-docs/Dockerfile . + - run: sudo kubectl set image deployment/fi-admin fi-admin=oneuptime/api-docs:4.0.$CI_PIPELINE_ID-staging # Cleanup - run: chmod +x ./ci/scripts/deployment-cleanup.sh - run: ./ci/scripts/deployment-cleanup.sh diff --git a/.github/workflows/application-scanner-production-deploy.yaml b/.github/workflows/application-scanner-production-deploy.yaml index 71415f81c3..644db1591f 100644 --- a/.github/workflows/application-scanner-production-deploy.yaml +++ b/.github/workflows/application-scanner-production-deploy.yaml @@ -33,7 +33,7 @@ jobs: - run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD - run: sudo docker buildx create --use - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/admin-dashboard:4.0.$CI_PIPELINE_ID --push -f ./admin-dashboard/Dockerfile . - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/admin-dashboard:master --push -f ./admin-dashboard/Dockerfile . + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/admin-dashboard:latest --push -f ./admin-dashboard/Dockerfile . - run: sudo kubectl set image deployment/fi-app-scan fi-app-scan=oneuptime/admin-dashboard:4.0.$CI_PIPELINE_ID # Cleanup - run: chmod +x ./ci/scripts/deployment-cleanup.sh diff --git a/.github/workflows/application-scanner-staging-deploy.yaml b/.github/workflows/application-scanner-staging-deploy.yaml index 0874661e63..199b157f21 100644 --- a/.github/workflows/application-scanner-staging-deploy.yaml +++ b/.github/workflows/application-scanner-staging-deploy.yaml @@ -32,9 +32,9 @@ jobs: # Build and deploy application-scanner. - run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD - run: sudo docker buildx create --use - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/application-scanner:4.0.$CI_PIPELINE_ID --push -f ./application-scanner/Dockerfile . - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/application-scanner:master --push -f ./application-scanner/Dockerfile . - - run: sudo kubectl set image deployment/fi-app-scan fi-app-scan=oneuptime/application-scanner:4.0.$CI_PIPELINE_ID + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/application-scanner:4.0.$CI_PIPELINE_ID-staging --push -f ./application-scanner/Dockerfile . + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/application-scanner:staging --push -f ./application-scanner/Dockerfile . + - run: sudo kubectl set image deployment/fi-app-scan fi-app-scan=oneuptime/application-scanner:4.0.$CI_PIPELINE_ID-staging # Cleanup - run: chmod +x ./ci/scripts/deployment-cleanup.sh - run: ./ci/scripts/deployment-cleanup.sh diff --git a/.github/workflows/backend-production-deploy.yaml b/.github/workflows/backend-production-deploy.yaml index 4da6e652c4..aaa085b544 100644 --- a/.github/workflows/backend-production-deploy.yaml +++ b/.github/workflows/backend-production-deploy.yaml @@ -33,7 +33,7 @@ jobs: - run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD - run: sudo docker buildx create --use - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/backend:4.0.$CI_PIPELINE_ID --push -f ./backend/Dockerfile . - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/backend:master --push -f ./backend/Dockerfile . + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/backend:latest --push -f ./backend/Dockerfile . - run: sudo kubectl set image deployment/fi-backend fi-backend=oneuptime/backend:4.0.$CI_PIPELINE_ID # Cleanup - run: chmod +x ./ci/scripts/deployment-cleanup.sh diff --git a/.github/workflows/backend-staging-deploy.yaml b/.github/workflows/backend-staging-deploy.yaml index 86468b8cb1..85ff400aa9 100644 --- a/.github/workflows/backend-staging-deploy.yaml +++ b/.github/workflows/backend-staging-deploy.yaml @@ -32,9 +32,9 @@ jobs: # Build and deploy backend. - run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD - run: sudo docker buildx create --use - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/backend:4.0.$CI_PIPELINE_ID --push -f ./backend/Dockerfile . - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/backend:master --push -f ./backend/Dockerfile . - - run: sudo kubectl set image deployment/fi-backend fi-backend=oneuptime/backend:4.0.$CI_PIPELINE_ID + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/backend:4.0.$CI_PIPELINE_ID-staging --push -f ./backend/Dockerfile . + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/backend:staging --push -f ./backend/Dockerfile . + - run: sudo kubectl set image deployment/fi-backend fi-backend=oneuptime/backend:4.0.$CI_PIPELINE_ID-staging # Cleanup - run: chmod +x ./ci/scripts/deployment-cleanup.sh - run: ./ci/scripts/deployment-cleanup.sh diff --git a/.github/workflows/container-scanner-production-deploy.yaml b/.github/workflows/container-scanner-production-deploy.yaml index 04e88b0383..f230864d68 100644 --- a/.github/workflows/container-scanner-production-deploy.yaml +++ b/.github/workflows/container-scanner-production-deploy.yaml @@ -33,7 +33,7 @@ jobs: - run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD - run: sudo docker buildx create --use - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/container-scanner:4.0.$CI_PIPELINE_ID --push -f ./container-scanner/Dockerfile . - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/container-scanner:master --push -f ./container-scanner/Dockerfile . + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/container-scanner:latest --push -f ./container-scanner/Dockerfile . - run: sudo kubectl set image deployment/fi-cont-scan fi-cont-scan=oneuptime/container-scanner:4.0.$CI_PIPELINE_ID # Cleanup - run: chmod +x ./ci/scripts/deployment-cleanup.sh diff --git a/.github/workflows/container-scanner-staging-deploy.yaml b/.github/workflows/container-scanner-staging-deploy.yaml index cd5e967c3d..f4eb7ceabb 100644 --- a/.github/workflows/container-scanner-staging-deploy.yaml +++ b/.github/workflows/container-scanner-staging-deploy.yaml @@ -32,9 +32,9 @@ jobs: # Build and deploy container-scanner. - run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD - run: sudo docker buildx create --use - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/container-scanner:4.0.$CI_PIPELINE_ID --push -f ./container-scanner/Dockerfile . - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/container-scanner:master --push -f ./container-scanner/Dockerfile . - - run: sudo kubectl set image deployment/fi-cont-scan fi-cont-scan=oneuptime/container-scanner:4.0.$CI_PIPELINE_ID + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/container-scanner:4.0.$CI_PIPELINE_ID-staging --push -f ./container-scanner/Dockerfile . + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/container-scanner:staging --push -f ./container-scanner/Dockerfile . + - run: sudo kubectl set image deployment/fi-cont-scan fi-cont-scan=oneuptime/container-scanner:4.0.$CI_PIPELINE_ID-staging # Cleanup - run: chmod +x ./ci/scripts/deployment-cleanup.sh - run: ./ci/scripts/deployment-cleanup.sh diff --git a/.github/workflows/dashboard-production-deploy.yaml b/.github/workflows/dashboard-production-deploy.yaml index 634d92fc76..692a7fa9b8 100644 --- a/.github/workflows/dashboard-production-deploy.yaml +++ b/.github/workflows/dashboard-production-deploy.yaml @@ -33,7 +33,7 @@ jobs: - run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD - run: sudo docker buildx create --use - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/dashboard:4.0.$CI_PIPELINE_ID --push -f ./dashboard/Dockerfile . - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/dashboard:master --push -f ./dashboard/Dockerfile . + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/dashboard:latest --push -f ./dashboard/Dockerfile . - run: sudo kubectl set image deployment/fi-dashboard fi-dashboard=oneuptime/dashboard:4.0.$CI_PIPELINE_ID # Cleanup - run: chmod +x ./ci/scripts/deployment-cleanup.sh diff --git a/.github/workflows/dashboard-staging-deploy.yaml b/.github/workflows/dashboard-staging-deploy.yaml index af2d833311..8d57f23944 100644 --- a/.github/workflows/dashboard-staging-deploy.yaml +++ b/.github/workflows/dashboard-staging-deploy.yaml @@ -32,9 +32,9 @@ jobs: # Build and deploy dashboard. - run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD - run: sudo docker buildx create --use - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/dashboard:4.0.$CI_PIPELINE_ID --push -f ./dashboard/Dockerfile . - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/dashboard:master --push -f ./dashboard/Dockerfile . - - run: sudo kubectl set image deployment/fi-dashboard fi-dashboard=oneuptime/dashboard:4.0.$CI_PIPELINE_ID + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/dashboard:4.0.$CI_PIPELINE_ID-staging --push -f ./dashboard/Dockerfile . + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/dashboard:staging --push -f ./dashboard/Dockerfile . + - run: sudo kubectl set image deployment/fi-dashboard fi-dashboard=oneuptime/dashboard:4.0.$CI_PIPELINE_ID-staging # Cleanup - run: chmod +x ./ci/scripts/deployment-cleanup.sh - run: ./ci/scripts/deployment-cleanup.sh diff --git a/.github/workflows/data-ingestor-production-deploy.yaml b/.github/workflows/data-ingestor-production-deploy.yaml index ace62e04c5..78ab3d675f 100644 --- a/.github/workflows/data-ingestor-production-deploy.yaml +++ b/.github/workflows/data-ingestor-production-deploy.yaml @@ -33,7 +33,7 @@ jobs: - run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD - run: sudo docker buildx create --use - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/data-ingestor:4.0.$CI_PIPELINE_ID --push -f ./data-ingestor/Dockerfile . - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/data-ingestor:master --push -f ./data-ingestor/Dockerfile . + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/data-ingestor:latest --push -f ./data-ingestor/Dockerfile . - run: sudo kubectl set image deployment/fi-ingestor fi-ingestor=oneuptime/data-ingestor:4.0.$CI_PIPELINE_ID # Cleanup - run: chmod +x ./ci/scripts/deployment-cleanup.sh diff --git a/.github/workflows/data-ingestor-staging-deploy.yaml b/.github/workflows/data-ingestor-staging-deploy.yaml index 7603a33315..90bc9fe8a7 100644 --- a/.github/workflows/data-ingestor-staging-deploy.yaml +++ b/.github/workflows/data-ingestor-staging-deploy.yaml @@ -32,9 +32,9 @@ jobs: # Build and deploy data-ingestor. - run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD - run: sudo docker buildx create --use - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/data-ingestor:4.0.$CI_PIPELINE_ID --push -f ./data-ingestor/Dockerfile . - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/data-ingestor:master --push -f ./data-ingestor/Dockerfile . - - run: sudo kubectl set image deployment/fi-ingestor fi-ingestor=oneuptime/data-ingestor:4.0.$CI_PIPELINE_ID + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/data-ingestor:4.0.$CI_PIPELINE_ID-staging --push -f ./data-ingestor/Dockerfile . + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/data-ingestor:staging --push -f ./data-ingestor/Dockerfile . + - run: sudo kubectl set image deployment/fi-ingestor fi-ingestor=oneuptime/data-ingestor:4.0.$CI_PIPELINE_ID-staging # Cleanup - run: chmod +x ./ci/scripts/deployment-cleanup.sh - run: ./ci/scripts/deployment-cleanup.sh diff --git a/.github/workflows/haraka-production-deploy.yaml b/.github/workflows/haraka-production-deploy.yaml index 091e7e0157..fcdec58f43 100644 --- a/.github/workflows/haraka-production-deploy.yaml +++ b/.github/workflows/haraka-production-deploy.yaml @@ -33,7 +33,7 @@ jobs: - run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD - run: sudo docker buildx create --use - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/fi-haraka:4.0.$CI_PIPELINE_ID --push -f ./haraka/Dockerfile ./haraka - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/fi-haraka:master --push -f ./haraka/Dockerfile ./haraka + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/fi-haraka:latest --push -f ./haraka/Dockerfile ./haraka - run: sudo kubectl set image deployment/fi-haraka fi-haraka=oneuptime/fi-haraka:4.0.$CI_PIPELINE_ID # Cleanup - run: chmod +x ./ci/scripts/deployment-cleanup.sh diff --git a/.github/workflows/haraka-staging-deploy.yaml b/.github/workflows/haraka-staging-deploy.yaml index 7f8000c9b3..dd07842f38 100644 --- a/.github/workflows/haraka-staging-deploy.yaml +++ b/.github/workflows/haraka-staging-deploy.yaml @@ -32,9 +32,9 @@ jobs: # Build and deploy fi-haraka. - run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD - run: sudo docker buildx create --use - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/fi-haraka:4.0.$CI_PIPELINE_ID --push -f ./haraka/Dockerfile ./haraka - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/fi-haraka:master --push -f ./haraka/Dockerfile ./haraka - - run: sudo kubectl set image deployment/fi-haraka fi-haraka=oneuptime/fi-haraka:4.0.$CI_PIPELINE_ID + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/fi-haraka:4.0.$CI_PIPELINE_ID-staging --push -f ./haraka/Dockerfile ./haraka + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/fi-haraka:staging --push -f ./haraka/Dockerfile ./haraka + - run: sudo kubectl set image deployment/fi-haraka fi-haraka=oneuptime/fi-haraka:4.0.$CI_PIPELINE_ID-staging # Cleanup - run: chmod +x ./ci/scripts/deployment-cleanup.sh - run: ./ci/scripts/deployment-cleanup.sh diff --git a/.github/workflows/helm-chart-production-deploy.yaml b/.github/workflows/helm-chart-production-deploy.yaml index e1cbc52ca7..43daec5017 100644 --- a/.github/workflows/helm-chart-production-deploy.yaml +++ b/.github/workflows/helm-chart-production-deploy.yaml @@ -33,7 +33,7 @@ jobs: - run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD - run: sudo docker buildx create --use - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/helm-chart:4.0.$CI_PIPELINE_ID --push -f ./helm-chart/Dockerfile . - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/helm-chart:master --push -f ./helm-chart/Dockerfile . + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/helm-chart:latest --push -f ./helm-chart/Dockerfile . - run: sudo kubectl set image deployment/fi-helm-chart fi-helm-chart=oneuptime/helm-chart:4.0.$CI_PIPELINE_ID # Cleanup - run: chmod +x ./ci/scripts/deployment-cleanup.sh diff --git a/.github/workflows/helm-chart-staging-deploy.yaml b/.github/workflows/helm-chart-staging-deploy.yaml index 180369d159..e62e141002 100644 --- a/.github/workflows/helm-chart-staging-deploy.yaml +++ b/.github/workflows/helm-chart-staging-deploy.yaml @@ -32,11 +32,11 @@ jobs: # Build and deploy helm-chart. - run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD - run: sudo docker buildx create --use - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/helm-chart:4.0.$CI_PIPELINE_ID --push -f ./helm-chart/Dockerfile . - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/helm-chart:master --push -f ./helm-chart/Dockerfile . + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/helm-chart:4.0.$CI_PIPELINE_ID-staging --push -f ./helm-chart/Dockerfile . + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/helm-chart:staging --push -f ./helm-chart/Dockerfile . - run: sudo kubectl config get-contexts - run: kubectl config get-contexts - - run: sudo kubectl set image deployment/fi-helm-chart fi-helm-chart=oneuptime/helm-chart:4.0.$CI_PIPELINE_ID + - run: sudo kubectl set image deployment/fi-helm-chart fi-helm-chart=oneuptime/helm-chart:4.0.$CI_PIPELINE_ID-staging # Cleanup - run: chmod +x ./ci/scripts/deployment-cleanup.sh - run: ./ci/scripts/deployment-cleanup.sh diff --git a/.github/workflows/home-production-deploy.yaml b/.github/workflows/home-production-deploy.yaml index 0ea58f9aed..3a8bdc3796 100644 --- a/.github/workflows/home-production-deploy.yaml +++ b/.github/workflows/home-production-deploy.yaml @@ -33,7 +33,7 @@ jobs: - run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD - run: sudo docker buildx create --use - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/home:4.0.$CI_PIPELINE_ID --push -f ./home/Dockerfile . - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/home:master --push -f ./home/Dockerfile . + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/home:latest --push -f ./home/Dockerfile . - run: sudo kubectl set image deployment/fi-home fi-home=oneuptime/home:4.0.$CI_PIPELINE_ID # Cleanup - run: chmod +x ./ci/scripts/deployment-cleanup.sh diff --git a/.github/workflows/home-staging-deploy.yaml b/.github/workflows/home-staging-deploy.yaml index 5de6c8fd29..f4acfea1fe 100644 --- a/.github/workflows/home-staging-deploy.yaml +++ b/.github/workflows/home-staging-deploy.yaml @@ -32,9 +32,9 @@ jobs: # Build and deploy home. - run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD - run: sudo docker buildx create --use - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/home:4.0.$CI_PIPELINE_ID --push -f ./home/Dockerfile . - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/home:master --push -f ./home/Dockerfile . - - run: sudo kubectl set image deployment/fi-home fi-home=oneuptime/home:4.0.$CI_PIPELINE_ID + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/home:4.0.$CI_PIPELINE_ID-staging --push -f ./home/Dockerfile . + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/home:staging --push -f ./home/Dockerfile . + - run: sudo kubectl set image deployment/fi-home fi-home=oneuptime/home:4.0.$CI_PIPELINE_ID-staging # Cleanup - run: chmod +x ./ci/scripts/deployment-cleanup.sh - run: ./ci/scripts/deployment-cleanup.sh diff --git a/.github/workflows/http-test-server-production-deploy.yaml b/.github/workflows/http-test-server-production-deploy.yaml index 9b9c8be458..415d20ea6a 100644 --- a/.github/workflows/http-test-server-production-deploy.yaml +++ b/.github/workflows/http-test-server-production-deploy.yaml @@ -33,7 +33,7 @@ jobs: - run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD - run: sudo docker buildx create --use - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/http-test-server:4.0.$CI_PIPELINE_ID --push -f ./http-test-server/Dockerfile . - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/http-test-server:master --push -f ./http-test-server/Dockerfile . + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/http-test-server:latest --push -f ./http-test-server/Dockerfile . - run: sudo kubectl set image deployment/fi-test fi-test=oneuptime/http-test-server:4.0.$CI_PIPELINE_ID # Cleanup - run: chmod +x ./ci/scripts/deployment-cleanup.sh diff --git a/.github/workflows/http-test-server-staging-deploy.yaml b/.github/workflows/http-test-server-staging-deploy.yaml index 69b686d664..64b81df1f7 100644 --- a/.github/workflows/http-test-server-staging-deploy.yaml +++ b/.github/workflows/http-test-server-staging-deploy.yaml @@ -32,9 +32,9 @@ jobs: # Build and deploy http-test-server. - run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD - run: sudo docker buildx create --use - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/http-test-server:4.0.$CI_PIPELINE_ID --push -f ./http-test-server/Dockerfile . - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/http-test-server:master --push -f ./http-test-server/Dockerfile . - - run: sudo kubectl set image deployment/fi-test fi-test=oneuptime/http-test-server:4.0.$CI_PIPELINE_ID + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/http-test-server:4.0.$CI_PIPELINE_ID-staging --push -f ./http-test-server/Dockerfile . + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/http-test-server:staging --push -f ./http-test-server/Dockerfile . + - run: sudo kubectl set image deployment/fi-test fi-test=oneuptime/http-test-server:4.0.$CI_PIPELINE_ID-staging # Cleanup - run: chmod +x ./ci/scripts/deployment-cleanup.sh - run: ./ci/scripts/deployment-cleanup.sh diff --git a/.github/workflows/init-script-production-deploy.yaml b/.github/workflows/init-script-production-deploy.yaml index 8560ca5939..2a86528b66 100644 --- a/.github/workflows/init-script-production-deploy.yaml +++ b/.github/workflows/init-script-production-deploy.yaml @@ -33,7 +33,7 @@ jobs: - run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD - run: sudo docker buildx create --use - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/init-script:4.0.$CI_PIPELINE_ID --push -f ./init-script/Dockerfile . - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/init-script:master --push -f ./init-script/Dockerfile . + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/init-script:latest --push -f ./init-script/Dockerfile . - run: sudo kubectl set image deployment/fi-init-script fi-init-script=oneuptime/init-script:4.0.$CI_PIPELINE_ID # Cleanup - run: chmod +x ./ci/scripts/deployment-cleanup.sh diff --git a/.github/workflows/init-script-staging-deploy.yaml b/.github/workflows/init-script-staging-deploy.yaml index a7eb5bf320..451b4df58c 100644 --- a/.github/workflows/init-script-staging-deploy.yaml +++ b/.github/workflows/init-script-staging-deploy.yaml @@ -32,8 +32,8 @@ jobs: # Build and deploy init-script. - run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD - run: sudo docker buildx create --use - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/init-script:4.0.$CI_PIPELINE_ID --push -f ./init-script/Dockerfile . - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/init-script:master --push -f ./init-script/Dockerfile . + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/init-script:4.0.$CI_PIPELINE_ID-staging --push -f ./init-script/Dockerfile . + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/init-script:staging --push -f ./init-script/Dockerfile . - run: sudo kubectl delete job fi-init-script || echo "Job not found" - run: sudo helm upgrade --reuse-values fi ./helm-chart/public/oneuptime diff --git a/.github/workflows/licensing-production-deploy.yaml b/.github/workflows/licensing-production-deploy.yaml index 390f000915..03594f3f57 100644 --- a/.github/workflows/licensing-production-deploy.yaml +++ b/.github/workflows/licensing-production-deploy.yaml @@ -34,7 +34,7 @@ jobs: - run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD - run: sudo docker buildx create --use - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/licensing:4.0.$CI_PIPELINE_ID --push -f ./licensing/Dockerfile . - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/licensing:master --push -f ./licensing/Dockerfile . + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/licensing:latest --push -f ./licensing/Dockerfile . - run: sudo kubectl set image deployment/fi-licensing fi-licensing=oneuptime/licensing:4.0.$CI_PIPELINE_ID # Cleanup - run: chmod +x ./ci/scripts/deployment-cleanup.sh diff --git a/.github/workflows/licensing-staging-deploy.yaml b/.github/workflows/licensing-staging-deploy.yaml index 093e9b1bc2..90252c0e8b 100644 --- a/.github/workflows/licensing-staging-deploy.yaml +++ b/.github/workflows/licensing-staging-deploy.yaml @@ -33,9 +33,9 @@ jobs: # Build and deploy licensing. - run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD - run: sudo docker buildx create --use - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/licensing:4.0.$CI_PIPELINE_ID --push -f ./licensing/Dockerfile . - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/licensing:master --push -f ./licensing/Dockerfile . - - run: sudo kubectl set image deployment/fi-licensing fi-licensing=oneuptime/licensing:4.0.$CI_PIPELINE_ID + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/licensing:4.0.$CI_PIPELINE_ID-staging --push -f ./licensing/Dockerfile . + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/licensing:staging --push -f ./licensing/Dockerfile . + - run: sudo kubectl set image deployment/fi-licensing fi-licensing=oneuptime/licensing:4.0.$CI_PIPELINE_ID-staging # Cleanup - run: chmod +x ./ci/scripts/deployment-cleanup.sh - run: ./ci/scripts/deployment-cleanup.sh diff --git a/.github/workflows/lighthouse-runner-production-deploy.yaml b/.github/workflows/lighthouse-runner-production-deploy.yaml index 8083ce4fbb..ea109d4568 100644 --- a/.github/workflows/lighthouse-runner-production-deploy.yaml +++ b/.github/workflows/lighthouse-runner-production-deploy.yaml @@ -34,7 +34,7 @@ jobs: - run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD - run: sudo docker buildx create --use - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/lighthouse-runner:4.0.$CI_PIPELINE_ID --push -f ./lighthouse-runner/Dockerfile . - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/lighthouse-runner:master --push -f ./lighthouse-runner/Dockerfile . + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/lighthouse-runner:latest --push -f ./lighthouse-runner/Dockerfile . - run: sudo kubectl set image deployment/fi-lighthouse fi-lighthouse=oneuptime/lighthouse-runner:4.0.$CI_PIPELINE_ID # Cleanup - run: chmod +x ./ci/scripts/deployment-cleanup.sh diff --git a/.github/workflows/lighthouse-runner-staging-deploy.yaml b/.github/workflows/lighthouse-runner-staging-deploy.yaml index 1c42e5ffc8..8fef6d9d36 100644 --- a/.github/workflows/lighthouse-runner-staging-deploy.yaml +++ b/.github/workflows/lighthouse-runner-staging-deploy.yaml @@ -33,9 +33,9 @@ jobs: # Build and deploy lighthouse-runner. - run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD - run: sudo docker buildx create --use - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/lighthouse-runner:4.0.$CI_PIPELINE_ID --push -f ./lighthouse-runner/Dockerfile . - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/lighthouse-runner:master --push -f ./lighthouse-runner/Dockerfile . - - run: sudo kubectl set image deployment/fi-lighthouse fi-lighthouse=oneuptime/lighthouse-runner:4.0.$CI_PIPELINE_ID + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/lighthouse-runner:4.0.$CI_PIPELINE_ID-staging --push -f ./lighthouse-runner/Dockerfile . + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/lighthouse-runner:staging --push -f ./lighthouse-runner/Dockerfile . + - run: sudo kubectl set image deployment/fi-lighthouse fi-lighthouse=oneuptime/lighthouse-runner:4.0.$CI_PIPELINE_ID-staging # Cleanup - run: chmod +x ./ci/scripts/deployment-cleanup.sh - run: ./ci/scripts/deployment-cleanup.sh diff --git a/.github/workflows/probe-api-production-deploy.yaml b/.github/workflows/probe-api-production-deploy.yaml index a602d1f765..833864551a 100644 --- a/.github/workflows/probe-api-production-deploy.yaml +++ b/.github/workflows/probe-api-production-deploy.yaml @@ -34,7 +34,7 @@ jobs: - run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD - run: sudo docker buildx create --use - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/probe-api:4.0.$CI_PIPELINE_ID --push -f ./probe-api/Dockerfile . - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/probe-api:master --push -f ./probe-api/Dockerfile . + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/probe-api:latest --push -f ./probe-api/Dockerfile . - run: sudo kubectl set image deployment/fi-probe-api fi-probe-api=oneuptime/probe-api:4.0.$CI_PIPELINE_ID # Cleanup - run: chmod +x ./ci/scripts/deployment-cleanup.sh diff --git a/.github/workflows/probe-api-staging-deploy.yaml b/.github/workflows/probe-api-staging-deploy.yaml index c5cc9312df..5ca54c3210 100644 --- a/.github/workflows/probe-api-staging-deploy.yaml +++ b/.github/workflows/probe-api-staging-deploy.yaml @@ -33,9 +33,9 @@ jobs: # Build and deploy probe-api. - run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD - run: sudo docker buildx create --use - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/probe-api:4.0.$CI_PIPELINE_ID --push -f ./probe-api/Dockerfile . - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/probe-api:master --push -f ./probe-api/Dockerfile . - - run: sudo kubectl set image deployment/fi-probe-api fi-probe-api=oneuptime/probe-api:4.0.$CI_PIPELINE_ID + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/probe-api:4.0.$CI_PIPELINE_ID-staging --push -f ./probe-api/Dockerfile . + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/probe-api:staging --push -f ./probe-api/Dockerfile . + - run: sudo kubectl set image deployment/fi-probe-api fi-probe-api=oneuptime/probe-api:4.0.$CI_PIPELINE_ID-staging # Cleanup - run: chmod +x ./ci/scripts/deployment-cleanup.sh - run: ./ci/scripts/deployment-cleanup.sh diff --git a/.github/workflows/probe-production-deploy.yaml b/.github/workflows/probe-production-deploy.yaml index 3f9aeb8ead..6ad56f212a 100644 --- a/.github/workflows/probe-production-deploy.yaml +++ b/.github/workflows/probe-production-deploy.yaml @@ -34,7 +34,7 @@ jobs: - run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD - run: sudo docker buildx create --use - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/probe:4.0.$CI_PIPELINE_ID --push -f ./probe/Dockerfile . - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/probe:master --push -f ./probe/Dockerfile . + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/probe:latest --push -f ./probe/Dockerfile . - run: sudo kubectl set image deployment/fi-probe1 fi-probe1=oneuptime/probe:4.0.$CI_PIPELINE_ID - run: sudo kubectl set image deployment/fi-probe2 fi-probe2=oneuptime/probe:4.0.$CI_PIPELINE_ID # Cleanup diff --git a/.github/workflows/probe-staging-deploy.yaml b/.github/workflows/probe-staging-deploy.yaml index 4f0b9ae84e..515bac0437 100644 --- a/.github/workflows/probe-staging-deploy.yaml +++ b/.github/workflows/probe-staging-deploy.yaml @@ -33,10 +33,10 @@ jobs: # Build and deploy probe. - run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD - run: sudo docker buildx create --use - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/probe:4.0.$CI_PIPELINE_ID --push -f ./probe/Dockerfile . - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/probe:master --push -f ./probe/Dockerfile . - - run: sudo kubectl set image deployment/fi-probe1 fi-probe1=oneuptime/probe:4.0.$CI_PIPELINE_ID - - run: sudo kubectl set image deployment/fi-probe2 fi-probe2=oneuptime/probe:4.0.$CI_PIPELINE_ID + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/probe:4.0.$CI_PIPELINE_ID-staging --push -f ./probe/Dockerfile . + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/probe:staging --push -f ./probe/Dockerfile . + - run: sudo kubectl set image deployment/fi-probe1 fi-probe1=oneuptime/probe:4.0.$CI_PIPELINE_ID-staging + - run: sudo kubectl set image deployment/fi-probe2 fi-probe2=oneuptime/probe:4.0.$CI_PIPELINE_ID-staging # Cleanup - run: chmod +x ./ci/scripts/deployment-cleanup.sh - run: ./ci/scripts/deployment-cleanup.sh diff --git a/.github/workflows/realtime-production-deploy.yaml b/.github/workflows/realtime-production-deploy.yaml index 6ace24c3cc..74399a46c7 100644 --- a/.github/workflows/realtime-production-deploy.yaml +++ b/.github/workflows/realtime-production-deploy.yaml @@ -34,7 +34,7 @@ jobs: - run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD - run: sudo docker buildx create --use - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/realtime:4.0.$CI_PIPELINE_ID --push -f ./realtime/Dockerfile . - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/realtime:master --push -f ./realtime/Dockerfile . + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/realtime:latest --push -f ./realtime/Dockerfile . - run: sudo kubectl set image deployment/fi-realtime fi-realtime=oneuptime/realtime:4.0.$CI_PIPELINE_ID # Cleanup - run: chmod +x ./ci/scripts/deployment-cleanup.sh diff --git a/.github/workflows/realtime-staging-deploy.yaml b/.github/workflows/realtime-staging-deploy.yaml index 497236a5a8..d11a50ad9b 100644 --- a/.github/workflows/realtime-staging-deploy.yaml +++ b/.github/workflows/realtime-staging-deploy.yaml @@ -33,9 +33,9 @@ jobs: # Build and deploy realtime. - run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD - run: sudo docker buildx create --use - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/realtime:4.0.$CI_PIPELINE_ID --push -f ./realtime/Dockerfile . - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/realtime:master --push -f ./realtime/Dockerfile . - - run: sudo kubectl set image deployment/fi-realtime fi-realtime=oneuptime/realtime:4.0.$CI_PIPELINE_ID + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/realtime:4.0.$CI_PIPELINE_ID-staging --push -f ./realtime/Dockerfile . + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/realtime:staging --push -f ./realtime/Dockerfile . + - run: sudo kubectl set image deployment/fi-realtime fi-realtime=oneuptime/realtime:4.0.$CI_PIPELINE_ID-staging # Cleanup - run: chmod +x ./ci/scripts/deployment-cleanup.sh - run: ./ci/scripts/deployment-cleanup.sh diff --git a/.github/workflows/script-runner-production-deploy.yaml b/.github/workflows/script-runner-production-deploy.yaml index 8641e9b576..575dab36f0 100644 --- a/.github/workflows/script-runner-production-deploy.yaml +++ b/.github/workflows/script-runner-production-deploy.yaml @@ -34,7 +34,7 @@ jobs: - run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD - run: sudo docker buildx create --use - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/script-runner:4.0.$CI_PIPELINE_ID --push -f ./script-runner/Dockerfile . - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/script-runner:master --push -f ./script-runner/Dockerfile . + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/script-runner:latest --push -f ./script-runner/Dockerfile . - run: sudo kubectl set image deployment/fi-script fi-script=oneuptime/script-runner:4.0.$CI_PIPELINE_ID # Cleanup - run: chmod +x ./ci/scripts/deployment-cleanup.sh diff --git a/.github/workflows/script-runner-staging-deploy.yaml b/.github/workflows/script-runner-staging-deploy.yaml index 5389e96af4..5620ac5b62 100644 --- a/.github/workflows/script-runner-staging-deploy.yaml +++ b/.github/workflows/script-runner-staging-deploy.yaml @@ -33,9 +33,9 @@ jobs: # Build and deploy script-runner. - run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD - run: sudo docker buildx create --use - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/script-runner:4.0.$CI_PIPELINE_ID --push -f ./script-runner/Dockerfile . - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/script-runner:master --push -f ./script-runner/Dockerfile . - - run: sudo kubectl set image deployment/fi-script fi-script=oneuptime/script-runner:4.0.$CI_PIPELINE_ID + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/script-runner:4.0.$CI_PIPELINE_ID-staging --push -f ./script-runner/Dockerfile . + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/script-runner:staging --push -f ./script-runner/Dockerfile . + - run: sudo kubectl set image deployment/fi-script fi-script=oneuptime/script-runner:4.0.$CI_PIPELINE_ID-staging # Cleanup - run: chmod +x ./ci/scripts/deployment-cleanup.sh - run: ./ci/scripts/deployment-cleanup.sh diff --git a/.github/workflows/status-page-production-deploy.yaml b/.github/workflows/status-page-production-deploy.yaml index 841678b93f..c21ca5f8c9 100644 --- a/.github/workflows/status-page-production-deploy.yaml +++ b/.github/workflows/status-page-production-deploy.yaml @@ -34,7 +34,7 @@ jobs: - run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD - run: sudo docker buildx create --use - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/status-page:4.0.$CI_PIPELINE_ID --push -f ./status-page/Dockerfile . - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/status-page:master --push -f ./status-page/Dockerfile . + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/status-page:latest --push -f ./status-page/Dockerfile . - run: sudo kubectl set image deployment/fi-status fi-status=oneuptime/status-page:4.0.$CI_PIPELINE_ID # Cleanup - run: chmod +x ./ci/scripts/deployment-cleanup.sh diff --git a/.github/workflows/status-page-staging-deploy.yaml b/.github/workflows/status-page-staging-deploy.yaml index 2f515ed4c6..652a3c8496 100644 --- a/.github/workflows/status-page-staging-deploy.yaml +++ b/.github/workflows/status-page-staging-deploy.yaml @@ -33,9 +33,9 @@ jobs: # Build and deploy status-page. - run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD - run: sudo docker buildx create --use - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/status-page:4.0.$CI_PIPELINE_ID --push -f ./status-page/Dockerfile . - - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/status-page:master --push -f ./status-page/Dockerfile . - - run: sudo kubectl set image deployment/fi-status fi-status=oneuptime/status-page:4.0.$CI_PIPELINE_ID + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/status-page:4.0.$CI_PIPELINE_ID-staging --push -f ./status-page/Dockerfile . + - run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/status-page:staging --push -f ./status-page/Dockerfile . + - run: sudo kubectl set image deployment/fi-status fi-status=oneuptime/status-page:4.0.$CI_PIPELINE_ID-staging # Cleanup - run: chmod +x ./ci/scripts/deployment-cleanup.sh - run: ./ci/scripts/deployment-cleanup.sh diff --git a/ci/init-script/test.yaml b/ci/init-script/test.yaml index 64bfee556a..e9962e585a 100644 --- a/ci/init-script/test.yaml +++ b/ci/init-script/test.yaml @@ -17,7 +17,7 @@ spec: spec: containers: - name: init-script - image: localhost:32000/init-script:master + image: localhost:32000/init-script:staging imagePullPolicy: Always env: - name: MONGO_URL diff --git a/ci/spec/init-script/deploy.yaml b/ci/spec/init-script/deploy.yaml index 1aad9bb212..32713ca748 100644 --- a/ci/spec/init-script/deploy.yaml +++ b/ci/spec/init-script/deploy.yaml @@ -13,10 +13,10 @@ staging_init-script: - chmod +x ./ci/scripts/deployment-staging-setup.sh - bash ./ci/scripts/deployment-staging-setup.sh - sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD - - sudo docker build -t oneuptime/init-script:master ./init-script - - sudo docker tag oneuptime/init-script:master oneuptime/init-script:4.0.$CI_PIPELINE_ID + - sudo docker build -t oneuptime/init-script:staging ./init-script + - sudo docker tag oneuptime/init-script:staging oneuptime/init-script:4.0.$CI_PIPELINE_ID - sudo docker push oneuptime/init-script:4.0.$CI_PIPELINE_ID - - sudo docker push oneuptime/init-script:master + - sudo docker push oneuptime/init-script:staging ## You cannot update a Kubernetes job. They are immutable. Delete it and run helm again which will create a new job. . - sudo kubectl delete job fi-init-script || echo "Job not found" - sudo helm upgrade --reuse-values fi ./helm-chart/public/oneuptime diff --git a/ci/spec/probe-api/deploy.yaml b/ci/spec/probe-api/deploy.yaml index 2cb6299ba4..72a5a9f941 100644 --- a/ci/spec/probe-api/deploy.yaml +++ b/ci/spec/probe-api/deploy.yaml @@ -44,7 +44,7 @@ staging_probe-api: - sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD - sudo docker buildx create --use - sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/probe-api:4.0.$CI_PIPELINE_ID --push ./probe-api - - sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/probe-api:master --push ./probe-api + - sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/probe-api:staging --push ./probe-api - sudo kubectl set image deployment/fi-probe-api fi-probe-api=oneuptime/probe-api:4.0.$CI_PIPELINE_ID # Cleanup - chmod +x ./ci/scripts/deployment-cleanup.sh diff --git a/ci/spec/probe/deploy.yaml b/ci/spec/probe/deploy.yaml index d58f8855a4..bbff699b81 100644 --- a/ci/spec/probe/deploy.yaml +++ b/ci/spec/probe/deploy.yaml @@ -45,7 +45,7 @@ staging_probe: - sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD - sudo docker buildx create --use - sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/probe:4.0.$CI_PIPELINE_ID --push ./probe - - sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/probe:master --push ./probe + - sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/probe:staging --push ./probe - sudo kubectl set image deployment/fi-probe1 fi-probe1=oneuptime/probe:4.0.$CI_PIPELINE_ID # Additionally update probe1 deployment as well. - sudo kubectl set image deployment/fi-probe2 fi-probe2=oneuptime/probe:4.0.$CI_PIPELINE_ID diff --git a/ci/spec/realtime/deploy.yaml b/ci/spec/realtime/deploy.yaml index 04ba4048c1..1434e913a1 100644 --- a/ci/spec/realtime/deploy.yaml +++ b/ci/spec/realtime/deploy.yaml @@ -44,7 +44,7 @@ staging_realtime: - sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD - sudo docker buildx create --use - sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/realtime:4.0.$CI_PIPELINE_ID --push ./realtime - - sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/realtime:master --push ./realtime + - sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/realtime:staging --push ./realtime - sudo kubectl set image deployment/fi-realtime fi-realtime=oneuptime/realtime:4.0.$CI_PIPELINE_ID # Cleanup - chmod +x ./ci/scripts/deployment-cleanup.sh diff --git a/ci/spec/status-page/deploy.yaml b/ci/spec/status-page/deploy.yaml index a7ccc354ca..d5c4274856 100644 --- a/ci/spec/status-page/deploy.yaml +++ b/ci/spec/status-page/deploy.yaml @@ -14,7 +14,7 @@ staging_status-page: - sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD - sudo docker buildx create --use - sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/status-page:4.0.$CI_PIPELINE_ID --push ./status-page - - sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/status-page:master --push ./status-page + - sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/status-page:staging --push ./status-page - sudo kubectl set image deployment/fi-status fi-status=oneuptime/status-page:4.0.$CI_PIPELINE_ID # Cleanup - chmod +x ./ci/scripts/deployment-cleanup.sh