Skip to content

Commit

Permalink
fix empty ACR_CREDENTIAL_JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
tony-schndr committed Jun 5, 2024
1 parent cad7970 commit 5eef6f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .pipelines/templates/template-push-images-to-acr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ steps:
#trap 'set +e; for c in $(docker ps -aq); do docker rm -f $c; done; docker image prune -af ; rm -rf ~/.docker/config.json; rm -rf /run/user/$(id -u $USERNAME)/containers/auth.json' EXIT
export RP_IMAGE_ACR=${{ parameters.rpImageACR }}
ACR_CREDENTIAL_JSON=${{ parameters.acrCredentialsJSON }}
if [ -z ${{ parameters.acrCredentialsJSON }} ]; then
if [ -z "$ACR_CREDENTIAL_JSON" ]; then
az acr login --name "$RP_IMAGE_ACR"
else

Check failure on line 14 in .pipelines/templates/template-push-images-to-acr.yml

View workflow job for this annotation

GitHub Actions / mega-linter-yaml

14:11 [trailing-spaces] trailing spaces
trap 'rm -f acr-credentials.json' EXIT
Expand Down

0 comments on commit 5eef6f8

Please sign in to comment.