Tag emulator Docker image with git tag if present
@@ -65,10 +65,16 @@ install-cli: cmd/flow/flow
.PHONY: docker-build-emulator
docker-build-emulator:
docker build --ssh default -f cmd/flow/emulator/Dockerfile -t gcr.io/dl-flow/emulator:latest -t "gcr.io/dl-flow/emulator:$(SHORT_COMMIT)" .
+ifneq (${VERSION},)
+ docker tag gcr.io/dl-flow/emulator:latest gcr.io/dl-flow/emulator:${VERSION}
+endif
docker-push-emulator:
docker push gcr.io/dl-flow/emulator:latest
docker push "gcr.io/dl-flow/emulator:$(SHORT_COMMIT)"
+ifneq (${VERSION},)
+ docker push "gcr.io/dl-flow/emulator:${VERSION}"
+endif
# Check if the go version is 1.13. flow-go-sdk only supports go 1.13
.PHONY: check-go-version
