Update Makefile to tag and push version to Docker (#2150)

Previously only the Git SHA and `latest` were pushed by default and
the version had to be tagged and pushed manually.
This commit is contained in:
Zachary Wasserman
2019-11-17 14:09:29 -08:00
committed by GitHub
parent 70c6f5bd7d
commit 5124932dc4
+2
View File
@@ -188,10 +188,12 @@ endif
docker-build-release: xp-fleet xp-fleetctl
docker build -t "${DOCKER_IMAGE_NAME}:${DOCKER_IMAGE_TAG}" .
docker tag "${DOCKER_IMAGE_NAME}:${DOCKER_IMAGE_TAG}" kolide/fleet:${VERSION}
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:${VERSION}
docker push kolide/fleet:latest
docker-build-circle: