From 381c6f1384ebc4e795eeae034279016dcfe573d4 Mon Sep 17 00:00:00 2001 From: Victor Vrantchan Date: Tue, 23 Jan 2018 16:31:42 -0500 Subject: [PATCH] separate the docker build step from the docker push step (#1691) Allows users without write access to docker hub to still build the container. --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 3c7e20bf38..0f12f4d7f7 100644 --- a/Makefile +++ b/Makefile @@ -180,6 +180,8 @@ docker-build-release: .pre-fleet GOOS=linux go build -i -o build/linux/${OUTPUT} -ldflags ${KIT_VERSION} ./cmd/fleet docker build -t "${DOCKER_IMAGE_NAME}:${DOCKER_IMAGE_TAG}" . docker tag "${DOCKER_IMAGE_NAME}:${DOCKER_IMAGE_TAG}" kolide/fleet:latest + +docker-push-release: docker-build-release docker push "${DOCKER_IMAGE_NAME}:${DOCKER_IMAGE_TAG}" docker push kolide/fleet:latest