From 7b8af2ea76a35d45a84d54fba32d852c3858193d Mon Sep 17 00:00:00 2001 From: Gustavo Hidalgo Date: Mon, 1 Apr 2024 09:10:07 -0400 Subject: [PATCH] Fix CI by also login in with AzCLI (#193) --- .github/workflows/cicd.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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}}