mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-05 21:14:56 +00:00
docker tag and push :latest when building a git tag
Signed-off-by: Steve Kriss <steve@heptio.com>
This commit is contained in:
5
Makefile
5
Makefile
@@ -121,6 +121,11 @@ container-name:
|
||||
push: .push-$(DOTFILE_IMAGE) push-name
|
||||
.push-$(DOTFILE_IMAGE): .container-$(DOTFILE_IMAGE)
|
||||
@docker push $(IMAGE):$(VERSION)
|
||||
@if git describe --tags --exact-match >/dev/null 2>&1; \
|
||||
then \
|
||||
docker tag $(IMAGE):$(VERSION) $(IMAGE):latest; \
|
||||
docker push $(IMAGE):latest; \
|
||||
fi
|
||||
@docker images -q $(IMAGE):$(VERSION) > $@
|
||||
|
||||
push-name:
|
||||
|
||||
Reference in New Issue
Block a user