From 1b697b7bce4102e47774ef4e5afd2307b35850b9 Mon Sep 17 00:00:00 2001 From: Jeff Malnick Date: Thu, 19 Nov 2020 16:15:19 -0800 Subject: [PATCH] Update docker build to 0.1.2 (#793) * build: use 0.1.2 for docker build * feat: tag latest when tagging new docker release --- Makefile | 4 +++- docker/Release.dockerfile | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e31630a3c1..21bdb53896 100644 --- a/Makefile +++ b/Makefile @@ -153,7 +153,7 @@ install-go: # Docker build and publish variables and targets REGISTRY_NAME?=docker.io/hashicorp IMAGE_NAME=boundary -VERSION?=0.1.1 +VERSION?=0.1.2 IMAGE_TAG=$(REGISTRY_NAME)/$(IMAGE_NAME):$(VERSION) IMAGE_TAG_DEV=$(REGISTRY_NAME)/$(IMAGE_NAME):latest-$(shell git rev-parse --short HEAD) DOCKER_DIR=./docker @@ -165,6 +165,7 @@ docker-build: docker build -t $(IMAGE_TAG) \ --build-arg VERSION=$(VERSION) \ -f $(DOCKER_DIR)/Release.dockerfile docker/ + docker tag $(IMAGE_TAG) hashicorp/boundary:latest # builds from locally generated binary in bin/ docker-build-dev: export XC_OSARCH=linux/amd64 @@ -175,6 +176,7 @@ docker-build-dev: dev # requires appropriate permissions in dockerhub docker-publish: docker push $(IMAGE_TAG) + docker push hashicorp/boundary:latest .PHONY: api tools gen migrations proto website ci-config ci-verify set-ui-version docker docker-build docker-build-dev docker-publish diff --git a/docker/Release.dockerfile b/docker/Release.dockerfile index 63cc4f1e99..5863d2c086 100644 --- a/docker/Release.dockerfile +++ b/docker/Release.dockerfile @@ -1,6 +1,6 @@ FROM docker.mirror.hashicorp.services/alpine:3.10 -ARG VERSION=0.1.1 +ARG VERSION=0.1.2 LABEL name="Boundary" \ maintainer="HashiCorp Boundary Team " \