separate the docker build step from the docker push step (#1691)

Allows users without write access to docker hub to still build the container.
This commit is contained in:
Victor Vrantchan
2018-01-23 16:31:42 -05:00
committed by GitHub
parent e3d2af325c
commit 381c6f1384
+2
View File
@@ -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