-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
21 lines (15 loc) · 828 Bytes
/
Makefile
File metadata and controls
21 lines (15 loc) · 828 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.DEFAULT_GOAL := help
IMAGE_NAME ?= quay.io/testing-farm/ui
# default image tag set to current user name
IMAGE_TAG ?= ${USER}
##@ Containers
container/build: ## Build container
poetry build
poetry export -f requirements.txt --output requirements.txt
buildah bud -t $(IMAGE_NAME):$(IMAGE_TAG) -f container/Containerfile .
container/push: ## Push containers
buildah push $(IMAGE_NAME):$(IMAGE_TAG)
# See https://www.thapaliya.com/en/writings/well-documented-makefiles/ for details.
reverse = $(if $(1),$(call reverse,$(wordlist 2,$(words $(1)),$(1)))) $(firstword $(1))
help: ## Show this help
@awk 'BEGIN {FS = ":.*##"; printf "$(info $(PRELUDE))"} /^[a-zA-Z_/-]+:.*?##/ { printf " \033[36m%-35s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(call reverse, $(MAKEFILE_LIST))