mirror of
https://github.com/wahyd4/cert-manager.git
synced 2026-08-13 23:26:46 +10:00
Merge pull request #3771 from RinkiyaKeDad/3648_docker_push_target
feat: added images_push target in Makefile
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user