Skip to content

Commit

Permalink
Override portal docker image tag on bicep template on release #1583 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
hocinehacherouf authored Dec 5, 2022
1 parent 1787a88 commit 7ae6749
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ jobs:
cp -r ../iotedge-lorawan-starterkit/TemplateBicep/* ./templates/iotedge-lorawan-starterkit/
sed -r -i 's/..\/iotedge-lorawan-starterkit\/TemplateBicep\/main.bicep/.\/iotedge-lorawan-starterkit\/main.bicep/g' ./templates/azuredeploy.bicep
- name: Update IoTHub Portal docker image tag in app_service.bicep
working-directory: arm-templates/templates
env:
RELEASE_SEM_VERSION: ${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}
run: sed -i 's/ghcr.io\/cgi-fr\/iothub-portal:latest/ghcr.io\/cgi-fr\/iothub-portal:${RELEASE_SEM_VERSION}/g' app_service.bicep

- name: Generate ARM file
working-directory: arm-templates/templates
run: az bicep build --file azuredeploy.bicep --outfile azuredeploy.json
Expand Down

0 comments on commit 7ae6749

Please sign in to comment.