Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
ci: separate deploy steps
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbyheart committed Apr 30, 2021
1 parent 61ce1f8 commit 16e0241
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
- name: Compile source
if: env.AZURE_CREDENTIALS != ''
run: npx tsc
- name: Deploy
- name: Deploy solution
if: env.AZURE_CREDENTIALS != ''
run: |
az deployment group create \
Expand All @@ -91,6 +91,9 @@ jobs:
appRegistrationClientId=$APP_REG_CLIENT_ID \
b2cTenant=${B2C_TENANT} \
unwiredlabsApiKey=${UNWIRED_LABS_API_KEY}
- name: Deploy ADU
if: env.AZURE_CREDENTIALS != ''
run: |
# Incremental mode is used here to allow the creation of an ADU instance per solution independently
az deployment group create \
--resource-group ${ADU_RESOURCE_GROUP:-nRFAssetTrackerADU} \
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/test-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,14 @@ jobs:
appRegistrationClientId=${APP_REG_CLIENT_ID} \
b2cTenant=${B2C_TENANT} \
b2cFlowName=B2C_1_developer
- name: Deploy ADU
if: env.AZURE_CREDENTIALS != ''
uses: nick-invision/retry@v2
with:
timeout_minutes: 10
retry_wait_seconds: 300
max_attempts: 3
command: |
# Incremental mode is used here to allow the creation of an ADU instance per solution independently
az deployment group create \
--resource-group ${ADU_RESOURCE_GROUP:-nRFAssetTrackerADUCI} \
Expand Down

0 comments on commit 16e0241

Please sign in to comment.