-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drop docker from makefile and README (#1114)
* drop docker from makefile and README * leftovers * reword
- Loading branch information
1 parent
9237d9c
commit 1798976
Showing
3 changed files
with
27 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
QUAY_NAMESPACE ?= ${GO_PACKAGE_ORG_NAME} | ||
TARGET_REGISTRY := quay.io | ||
IMAGE_TAG ?= ${GIT_COMMIT_ID_SHORT} | ||
IMAGE ?= ${TARGET_REGISTRY}/${QUAY_NAMESPACE}/${GO_PACKAGE_REPO_NAME}:${IMAGE_TAG} | ||
QUAY_USERNAME ?= ${QUAY_NAMESPACE} | ||
IMAGE_PLATFORM ?= linux/amd64 | ||
|
||
.PHONY: podman-image | ||
## Build the binary image | ||
podman-image: build | ||
$(Q)podman build --platform ${IMAGE_PLATFORM} -f build/Dockerfile -t ${IMAGE} . | ||
|
||
.PHONY: podman-push | ||
## Push the binary image to quay.io registry | ||
podman-push: check-namespace podman-image | ||
$(Q)podman push ${IMAGE} | ||
|
||
.PHONY: check-namespace | ||
check-namespace: | ||
ifeq ($(QUAY_NAMESPACE),${GO_PACKAGE_ORG_NAME}) | ||
@echo "#################################################### WARNING ####################################################" | ||
@echo you are going to push to $(QUAY_NAMESPACE) namespace, make sure you have set QUAY_NAMESPACE variable appropriately | ||
@echo "#################################################################################################################" | ||
endif |