Skip to content

Commit e78e2c7

Browse files
committed
ci(deploy): assert App Service secrets before calling az
1 parent c6ebc63 commit e78e2c7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/docker-deploy.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ jobs:
4747
uses: azure/login@v1
4848
with:
4949
creds: ${{ secrets.AZURE_CREDENTIALS }}
50+
- name: Assert required App Service secrets are set
51+
run: |
52+
if [ -z "${{ secrets.EDITOR_APP_NAME }}" ]; then echo "ERROR: secrets.EDITOR_APP_NAME is not set"; exit 1; fi
53+
if [ -z "${{ secrets.RESOURCE_GROUP }}" ]; then echo "ERROR: secrets.RESOURCE_GROUP is not set"; exit 1; fi
54+
if [ -z "${{ secrets.EDITOR_API_APP_NAME }}" ]; then echo "ERROR: secrets.EDITOR_API_APP_NAME is not set"; exit 1; fi
5055
5156
- name: Deploy editor to App Service (container)
5257
run: |

0 commit comments

Comments
 (0)