diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 90d2930a..76d2cd7b 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -18,7 +18,7 @@ jobs: - name: Get image tag id: get_image_tag - run: + run: case "${GITHUB_REF}" in *tags*) echo "tag=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT @@ -34,6 +34,7 @@ jobs: CLIENT_SECRET: ${{ fromJSON(secrets.AZURE_CREDENTIALS).clientSecret }} run: docker login pcccr.azurecr.io --username ${CLIENT_ID} --password ${CLIENT_SECRET} + az acr login --name pcccr --username ${CLIENT_ID} --password ${CLIENT_SECRET} - name: Publish images run: ./scripts/cipublish --acr pcccr --tag ${{steps.get_image_tag.outputs.tag}}