mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-07 13:55:20 +00:00
use posix-compliant conditional for checking TAG_LATEST
Signed-off-by: Steve Kriss <steve@heptio.com>
This commit is contained in:
2
Makefile
2
Makefile
@@ -138,7 +138,7 @@ all-push:
|
||||
push: .push-$(DOTFILE_IMAGE) push-name
|
||||
.push-$(DOTFILE_IMAGE): .container-$(DOTFILE_IMAGE)
|
||||
@docker push $(IMAGE):$(VERSION)
|
||||
@if [[ "$(TAG_LATEST)" == "true" ]]; then \
|
||||
@if [ "$(TAG_LATEST)" == "true" ]; then \
|
||||
docker tag $(IMAGE):$(VERSION) $(IMAGE):latest; \
|
||||
docker push $(IMAGE):latest; \
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user