Skip to content

Commit

Permalink
Incorrect quoting on variables in pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
bennerv committed Feb 7, 2022
1 parent 2cce57f commit 55db043
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pipelines/build-and-push-images-tagged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
[[ -z ${TAG} ]] && exit 1
## set the variable
echo '##vso[task.setvariable variable=TAG]${TAG}'
echo "##vso[task.setvariable variable=TAG]${TAG}"
- template: ./templates/template-push-images-to-acr-tagged.yml
parameters:
Expand Down
4 changes: 3 additions & 1 deletion .pipelines/templates/template-push-images-to-acr-tagged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ steps:
- script: |
set -e
trap 'set +e; for c in $(docker ps -aq); do docker rm -f $c; done; docker image prune -af ; rm -rf ~/.docker/config.json' EXIT
export RP_IMAGE_ACR=${{ parameters.rpImageACR }}
export TAG=${{ parameters.imageTag }}
# TODO - remove this
echo "tag is ${TAG}"
az acr login --name "$RP_IMAGE_ACR"
# azure checkouts commit, so removing master reference when publishing image
export BRANCH=$(Build.SourceBranchName)
Expand Down

0 comments on commit 55db043

Please sign in to comment.