Skip to content

Commit 69aaae5

Browse files
committed
Update build.yaml
1 parent ec384fe commit 69aaae5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ jobs:
122122
IMAGE_NAME=`echo ${IMAGE_PATH} | cut -d '/' -f 2 | cut -d ':' -f 1`
123123
TAG="$CODE_VERSION"
124124
125-
if [ $(az acr repository show-tags --username ${{ vars.DOCKERHUB_USERNAME }} --password ${{ secrets.DOCKERHUB_TOKEN }} --name opensidewalksdev --repository $IMAGE_NAME | grep -o $TAG) == "$TAG" ]; then
125+
if az acr repository show-tags --username ${{ vars.DOCKERHUB_USERNAME }} --password ${{ secrets.DOCKERHUB_TOKEN }} --name opensidewalksdev --repository $IMAGE_NAME | grep -o $TAG; then
126126
echo "Image already exists for $IMAGE_PATH, not building again"
127127
else
128128
echo "Image does not exist at $IMAGE_PATH, building and pushing"

0 commit comments

Comments
 (0)