Skip to content

Commit

Permalink
πŸ‘· Deploy dev to both radix clusters #2074
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandolucchesi committed Jan 23, 2024
1 parent 87df19c commit 7806c94
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/DEV-web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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:
Expand Down
18 changes: 17 additions & 1 deletion .github/workflows/deploy-websites/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 7806c94

Please sign in to comment.