From 3b20dd2cf0858707e9fc3ddf62d4aa27e8ac1de2 Mon Sep 17 00:00:00 2001 From: "Malin J." Date: Thu, 2 Jan 2025 12:02:53 +0100 Subject: [PATCH] remove backup step and add satelittes #2672 --- .../workflows/PROD-all-webs-and-studios.yaml | 52 +++++++++++++------ 1 file changed, 37 insertions(+), 15 deletions(-) diff --git a/.github/workflows/PROD-all-webs-and-studios.yaml b/.github/workflows/PROD-all-webs-and-studios.yaml index 353116785..f046512c6 100644 --- a/.github/workflows/PROD-all-webs-and-studios.yaml +++ b/.github/workflows/PROD-all-webs-and-studios.yaml @@ -59,19 +59,6 @@ jobs: id: get-token uses: ./.github/workflows/get-auth-token/ - - name: Deploy to Radix backup 🚀 - id: deploy-backup - uses: equinor/radix-github-actions@master - with: - args: > - create job - deploy - --token-environment - --context production - -a equinor-web-sites - -e ${{ secrets.ENV }} - -f - - name: Deploy to Radix 🚀 id: deploy-main uses: equinor/radix-github-actions@master @@ -172,8 +159,43 @@ jobs: steps: ${{ toJson(steps) }} if: failure() + deploy-satellite-studios: + needs: deploy-studios + runs-on: ubuntu-latest + environment: + name: production + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + DOCKER_BUILDKIT: 1 + steps: + - name: Checkout 🛎️ + uses: actions/checkout@v3 + + - name: Get token 🔑 + id: get-token + uses: ./.github/workflows/get-auth-token/ + + - name: Deploy to Radix 🚀 + id: deploy + uses: equinor/radix-github-actions@master + with: + args: > + create job + deploy + --token-environment + --context platform2 + -a equinor-web-sites + -e ${{ secrets.ENV }} + -f + + - uses: act10ns/slack@v2 + with: + status: ${{ job.status }} + steps: ${{ toJson(steps) }} + if: failure() + store-image-tags: - needs: [deploy-webs, deploy-studios] + needs: [deploy-webs, deploy-satellite-studios] runs-on: ubuntu-latest steps: - name: Checkout internal 🛎️ @@ -201,4 +223,4 @@ jobs: git remote set-url origin https://x-access-token:${{ secrets.PADMS_PAT }}@github.com/equinor/energyvision-internal git add latest-prod-tags.json git commit -m "Update latest-prod-tags.json with new tags" || echo "No changes to commit" - git push + git push \ No newline at end of file