Skip to content

Commit

Permalink
drop docker from makefile (#490)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatousJobanek authored Dec 19, 2024
1 parent 2d48d74 commit 690bb9c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 63 deletions.
63 changes: 0 additions & 63 deletions make/docker.mk

This file was deleted.

24 changes: 24 additions & 0 deletions make/podman.mk
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

0 comments on commit 690bb9c

Please sign in to comment.