Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions .github/workflows/deploy-frontend-to-azureprod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,8 @@ jobs:
az keyvault secret show \
--vault-name ${{ env.KEYVAULT }} \
--name prod-env-next-platform \
--query value -o tsv > secrets.json

jq -r 'to_entries | .[] | "\(.key)=\(.value|tojson)"' secrets.json > src/platform/.env
--query value -o tsv | \
jq -r 'to_entries | .[] | "\(.key)=\(.value|tojson)"' > src/platform/.env

- name: Build and Push Docker Image
run: |
Expand Down Expand Up @@ -211,6 +210,14 @@ jobs:
- name: ACR Login
run: az acr login --name ${{ env.ACR_NAME }}

- name: Pull secrets from Key Vault
run: |
az keyvault secret show \
--vault-name ${{ env.KEYVAULT }} \
--name prod-env-vertex \
--query value -o tsv | \
jq -r 'to_entries | .[] | "\(.key)=\(.value|tojson)"' > src/vertex/.env

- name: Build and Push Docker Image
run: |
cd src/vertex/
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/deploy-frontend-to-azurestaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,8 @@ jobs:
az keyvault secret show \
--vault-name ${{ env.KEYVAULT }} \
--name sta-env-next-platform \
--query value -o tsv > secrets.json

jq -r 'to_entries | .[] | "\(.key)=\(.value|tojson)"' secrets.json > src/platform/.env
--query value -o tsv | \
jq -r 'to_entries | .[] | "\(.key)=\(.value|tojson)"' > src/platform/.env

- name: Build and Push Docker Image
run: |
Expand Down Expand Up @@ -280,6 +279,14 @@ jobs:
- name: ACR Login
run: az acr login --name ${{ env.ACR_NAME }}

- name: Pull secrets from Key Vault
run: |
az keyvault secret show \
--vault-name ${{ env.KEYVAULT }} \
--name sta-env-vertex \
--query value -o tsv | \
jq -r 'to_entries | .[] | "\(.key)=\(.value|tojson)"' > src/vertex/.env

- name: Build and Push Docker Image
run: |
cd src/vertex/
Expand Down
Loading