From 6c985777a2535820d646b516aa5850d942cee145 Mon Sep 17 00:00:00 2001 From: Hocine Hacherouf Date: Fri, 9 Dec 2022 16:34:49 +0100 Subject: [PATCH] Add missing step docker/metadata-action on arm_templates job --- .github/workflows/publish.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 83072dd35..761171bd4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -107,10 +107,17 @@ 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: Get semver + id: version + uses: docker/metadata-action@v4 + with: + images: | + ${{ env.registry_name }}/${{ github.repository_owner }}/${{ env.image_name }} + - 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'] }} + RELEASE_SEM_VERSION: ${{ fromJSON(steps.version.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