Add repo and build automation
This commit is contained in:
parent
599970ed72
commit
a944cf3878
16
Makefile
Normal file
16
Makefile
Normal file
@ -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)
|
Loading…
Reference in New Issue
Block a user