From a944cf387834e5454d8624b50a80392edec0ddbd Mon Sep 17 00:00:00 2001 From: Ethan Paul Date: Wed, 6 Mar 2024 14:22:49 -0500 Subject: [PATCH] Add repo and build automation --- Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..12223bb --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +REPOSITORY = vcs.enp.one/skylab/smashing-container +SMASHING_VERSION = 1.3.6 + + +.PHONY: help docs +# source: https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html +help: ## List Makefile targets + $(info Makefile documentation) + @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-10s\033[0m %s\n", $$1, $$2}' + + +image: ## Build image + podman build . --tag $(REPOSITORY):$(SMASHING_VERSION) --build-arg "SMASHING_VERSION=$(SMASHING_VERSION)" + +push: image ## Build and publish image + podman push $(REPOSITORY):$(SMASHING_VERSION)