Skip to content
This repository has been archived by the owner on Feb 2, 2019. It is now read-only.

Commit

Permalink
also push :latest-tag
Browse files Browse the repository at this point in the history
  • Loading branch information
MaZderMind committed Jul 16, 2017
1 parent fc3d28c commit e9820e3
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,20 @@
# See the License for the specific language governing permissions and
# limitations under the License.

IMAGE?=mazdermind/hostpath-provisioner:$(shell git rev-parse HEAD)
IMAGE?=mazdermind/hostpath-provisioner

TAG_GIT=$(IMAGE):$(shell git rev-parse HEAD)
TAG_LATEST=$(IMAGE):latest

all: dependencies hostpath-provisioner image

image:
docker build -t $(IMAGE) -f Dockerfile.scratch .
docker build -t $(TAG_GIT) -f Dockerfile.scratch .
docker tag $(TAG_GIT) $(TAG_LATEST)

push:
docker push $(IMAGE)
docker push $(TAG_GIT)
docker push $(TAG_LATEST)

dependencies:
glide install -v
Expand Down

0 comments on commit e9820e3

Please sign in to comment.