Skip to content

Commit

Permalink
Create a :latest tag on build to push to minikube
Browse files Browse the repository at this point in the history
  • Loading branch information
awh committed Jun 5, 2018
1 parent aefc4ea commit c42fff3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ cmd/kured/kured: cmd/kured/*.go
build/.image.done: cmd/kured/Dockerfile cmd/kured/kured
mkdir -p build
cp $^ build
$(SUDO) docker build -t quay.io/$(DH_ORG)/kured:$(VERSION) -f build/Dockerfile ./build
$(SUDO) docker build -t quay.io/$(DH_ORG)/kured -f build/Dockerfile ./build
$(SUDO) docker tag quay.io/$(DH_ORG)/kured quay.io/$(DH_ORG)/kured:$(VERSION)
touch $@

image: build/.image.done
Expand All @@ -32,4 +33,4 @@ publish-image: image
$(SUDO) docker push quay.io/$(DH_ORG)/kured:$(VERSION)

minikube-publish: image
$(SUDO) docker save quay.io/$(DH_ORG)/kured:$(VERSION) | (eval $$(minikube docker-env) && docker load)
$(SUDO) docker save quay.io/$(DH_ORG)/kured | (eval $$(minikube docker-env) && docker load)

0 comments on commit c42fff3

Please sign in to comment.