Added a push target to the makefile

This commit is contained in:
Julien Dessaux 2022-09-06 22:22:54 +02:00
parent a300c14972
commit 0906f8f0f0
Signed by: adyxax
GPG key ID: F92E51B86E07177E

View file

@ -1,6 +1,7 @@
CACHEDIR=/tmp/hugo-cache-$(USER) CACHEDIR=/tmp/hugo-cache-$(USER)
DESTDIR=public/ DESTDIR=public/
HOSTNAME=$(shell hostname) HOSTNAME=$(shell hostname)
REVISION=$(shell git rev-parse HEAD)
.PHONY: build .PHONY: build
build: ## make build # builds an optimized version of the website in $(DESTDIR) build: ## make build # builds an optimized version of the website in $(DESTDIR)
@ -14,6 +15,11 @@ build: ## make build # builds an optimized version of the website in $(DESTDIR)
buildah: ## make buildah # builds the container images buildah: ## make buildah # builds the container images
deploy/build-image.sh deploy/build-image.sh
.PHONY: push
push: ## make push # push the built images to quay.io
buildah push adyxax/www quay.io/adyxax/www:$(REVISION)
buildah push adyxax/www-search quay.io/adyxax/www-search:$(REVISION)
.PHONY: clean .PHONY: clean
clean: ## make clean # removed all $(DESTDIR) contents clean: ## make clean # removed all $(DESTDIR) contents
@echo "----- Cleaning old build -----" @echo "----- Cleaning old build -----"