Skip to content
Snippets Groups Projects
Verified Commit df408bdd authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

feat(Makefile): Add help output to container build

This patch adds some basic help output to the demo container build. It
adds the general help information to the container-build library file.

The helper include itself is put at the top level, to reduce
dependencies and making the help output optional. This way custom help
commands can still be defined if wanted without any potential of
conflicting with the one from the utils file.
parent 32777630
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@ DOCKER_FILE_PATH=Containerfile
.PHONY: pre-build docker-build post-build build release patch-release minor-release major-release tag check-status check-release showver \
push pre-push do-push post-push
build: pre-build docker-build post-build
build: pre-build docker-build post-build ## build and tag container
pre-build:
......@@ -59,18 +59,18 @@ docker-build: .release
@cat .release
release: check-status check-release build push
release: check-status check-release build push ## build release from current git tag and push to registry
push: pre-push do-push post-push
push: pre-push do-push post-push ## Push current image to registry
do-push:
podman push $(IMAGE):$(VERSION)
podman push $(IMAGE):latest
snapshot: build push
snapshot: build push ## Build current state and push to registry
showver: .release
showver: .release ## Print current container tag
@. $(RELEASE_SUPPORT); getVersion
tag-patch-release: VERSION := $(shell . $(RELEASE_SUPPORT); nextPatchLevel)
......@@ -82,13 +82,13 @@ tag-minor-release: .release tag
tag-major-release: VERSION := $(shell . $(RELEASE_SUPPORT); nextMajorLevel)
tag-major-release: .release tag
patch-release: tag-patch-release release
patch-release: tag-patch-release release ## Release new patch version
@echo $(VERSION)
minor-release: tag-minor-release release
minor-release: tag-minor-release release ## Release new minor version
@echo $(VERSION)
major-release: tag-major-release release
major-release: tag-major-release release ## Release new major version
@echo $(VERSION)
......
include ../.utils/container-build.mk
include ../../utils/help.mk
pre-build:
@echo do some stuff before the docker build
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment