diff --git a/.github/workflows/DEV-web.yaml b/.github/workflows/DEV-web.yaml index a756e687d..151f0cfd6 100644 --- a/.github/workflows/DEV-web.yaml +++ b/.github/workflows/DEV-web.yaml @@ -75,7 +75,7 @@ jobs: steps: - name: Checkout 🛎️ uses: actions/checkout@v3 - - id: deploy-global + - id: deploy-global-development uses: ./.github/workflows/deploy-websites/ with: imageName: ghcr.io/equinor/energyvision/web-${{ matrix.dataset }} @@ -89,6 +89,7 @@ jobs: dynatracePaaSToken: ${{ secrets.DYNATRACE_PAAS_TOKEN }} dynatraceImage: ${{ secrets.DYNATRACE_PREPROD_IMAGE }} archiveContentLink: ${{ vars.ARCHIVE_CONTENT_LINK }} + deployToBothClusters: true environment: ${{ secrets.ENV }} - uses: act10ns/slack@v2 with: diff --git a/.github/workflows/deploy-websites/action.yaml b/.github/workflows/deploy-websites/action.yaml index 4f012b7f1..8ea243bc2 100644 --- a/.github/workflows/deploy-websites/action.yaml +++ b/.github/workflows/deploy-websites/action.yaml @@ -43,6 +43,9 @@ inputs: archiveContentLink: description: 'Archive storage link' required: true + deployToBothClusters: + description: 'Deploy app to both Radix clusters' + required: false runs: using: 'composite' steps: @@ -114,7 +117,20 @@ runs: - name: Get token 🔑 id: get-token uses: ./.github/workflows/get-auth-token/ - - name: Deploy API on Radix 🚀 + - name: Deploy to Radix c1 🚀 + id: deploy + if: "${{ inputs.deployToBothClusters }}" + uses: equinor/radix-github-actions@master + with: + args: > + create job + deploy + --token-environment + --context production + -a equinor-web-sites + -e ${{ inputs.environment }} + -f + - name: Deploy to Radix c2 🚀 id: deploy uses: equinor/radix-github-actions@master with: