Skip to content

Commit

Permalink
Fix CI by also login in with AzCLI (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghidalgo3 authored Apr 1, 2024
1 parent 9874f04 commit 7b8af2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}}
Expand Down

0 comments on commit 7b8af2e

Please sign in to comment.