We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec384fe commit 69aaae5Copy full SHA for 69aaae5
.github/workflows/build.yaml
@@ -122,7 +122,7 @@ jobs:
122
IMAGE_NAME=`echo ${IMAGE_PATH} | cut -d '/' -f 2 | cut -d ':' -f 1`
123
TAG="$CODE_VERSION"
124
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
+ if az acr repository show-tags --username ${{ vars.DOCKERHUB_USERNAME }} --password ${{ secrets.DOCKERHUB_TOKEN }} --name opensidewalksdev --repository $IMAGE_NAME | grep -o $TAG; then
126
echo "Image already exists for $IMAGE_PATH, not building again"
127
else
128
echo "Image does not exist at $IMAGE_PATH, building and pushing"
0 commit comments