Skip to content

Commit 09436b9

Browse files
committed
build.make: fix pushing of "canary" image from master branch
After merging into external-attacher, the next Travis CI run did not push the "canary" image because the check for "canary" only covered the case where "-canary" is used as suffix (https://travis-ci.org/kubernetes-csi/external-attacher/builds/484095261).
1 parent 3041b8a commit 09436b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.make

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ push-%: container-%
7070
docker push $(IMAGE_NAME):$$tag; \
7171
}; \
7272
for tag in $(IMAGE_TAGS); do \
73-
if echo $$tag | grep -q -e '-canary$$'; then \
73+
if [ "$$tag" = "canary" ] || echo "$$tag" | grep -q -e '-canary$$'; then \
7474
: "creating or overwriting canary image"; \
7575
push_image; \
7676
elif docker pull $(IMAGE_NAME):$$tag 2>&1 | tee /dev/stderr | grep -q "manifest for $(IMAGE_NAME):$$tag not found"; then \

0 commit comments

Comments
 (0)