Merge pull request #3771 from RinkiyaKeDad/3648_docker_push_target

feat: added images_push target in Makefile
This commit is contained in:
jetstack-bot
2021-03-17 10:22:40 +00:00
committed by GitHub
+13 -2
View File
@@ -47,14 +47,17 @@ help:
#
# Image targets can be run with optional args DOCKER_REGISTRY and APP_VERSION:
#
# make images DOCKER_REGISTRY=quay.io/yourusername APP_VERSION=v0.11.0-dev.my-feature
# make images DOCKER_REGISTRY=quay.io/yourusername APP_VERSION=v0.11.0-dev.my-feature
#
# Images can be pushed with optional args DOCKER_REGISTRY and APP_VERSION:
#
# make images_push DOCKER_REGISTRY=quay.io/yourusername APP_VERSION=v0.11.0-dev.my-feature
#
# Alias targets
###############
build: ctl images
push: docker_push
verify:
bazel test //...
@@ -89,5 +92,13 @@ images:
--platforms=@io_bazel_rules_go//go/toolchain:linux_amd64 \
//build:server-images
images_push:
APP_VERSION=$(APP_VERSION) \
DOCKER_REGISTRY=$(DOCKER_REGISTRY) \
bazel run \
--stamp \
--platforms=@io_bazel_rules_go//go/toolchain:linux_amd64 \
//:images.push
ctl:
bazel build //cmd/ctl