Skip to content

Commit

Permalink
added publishing verify version of static web to azure
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-inge-arnes committed Jan 20, 2025
1 parent e3f2fa9 commit 83091bc
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/azure_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
NEXT_PUBLIC_API_HOST: https://prod-mong-api.skde.org
run: |
yarn run export
- name: Sync main Azure static web site storage
- name: Build and upload main branch version to Azure
if: github.ref == 'refs/heads/main'
env:
NEXT_PUBLIC_API_HOST: https://prod-mong-api.skde.org
Expand Down Expand Up @@ -67,12 +67,13 @@ jobs:
--pattern '*.xml' \
--content-cache-control "public, max-age=60, s-maxage=60" \
--overwrite
- name: Sync main Azure static web site storage
- name: Build and upload verify version to Azure
if: github.ref == 'refs/heads/main'
env:
NEXT_PUBLIC_API_HOST: https://prod-mong-api.skde.org
AZURE_STORAGE_ACCOUNT: ${{ secrets.AZURE_STORAGE_ACCOUNT_PROD }}
AZURE_STORAGE_KEY: ${{ secrets.AZURE_STORAGE_KEY_PROD }}
NEXT_PUBLIC_VERIFY: "true"
NEXT_PUBLIC_API_HOST: https://verify-mong-api.skde.org
AZURE_STORAGE_ACCOUNT: ${{ secrets.AZURE_STORAGE_ACCOUNT_VERIFY }}
AZURE_STORAGE_KEY: ${{ secrets.AZURE_STORAGE_KEY_VERIFY }}
run: |
yarn run export
az storage blob sync \
Expand All @@ -97,7 +98,7 @@ jobs:
--pattern '*.xml' \
--content-cache-control "public, max-age=60, s-maxage=60" \
--overwrite
- name: Sync main Azure static web site storage
- name: Upload develop version to Azure
if: github.ref == 'refs/heads/develop'
env:
NEXT_PUBLIC_API_HOST: https://test-api.skde.org
Expand Down

0 comments on commit 83091bc

Please sign in to comment.