aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Dessaux2022-09-06 22:22:54 +0200
committerJulien Dessaux2022-09-06 22:22:54 +0200
commit0906f8f0f051f1aac1ecb9f77517e51a807b4ac6 (patch)
tree9a00080b29d0a67e6cb7ca378c7efc884a4861ea
parentReworked the building of the website in a container with buildah (diff)
downloadwww-0906f8f0f051f1aac1ecb9f77517e51a807b4ac6.tar.gz
www-0906f8f0f051f1aac1ecb9f77517e51a807b4ac6.tar.bz2
www-0906f8f0f051f1aac1ecb9f77517e51a807b4ac6.zip
Added a push target to the makefile
Diffstat (limited to '')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 7fa3d6a..bd6c763 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
CACHEDIR=/tmp/hugo-cache-$(USER)
DESTDIR=public/
HOSTNAME=$(shell hostname)
+REVISION=$(shell git rev-parse HEAD)
.PHONY: build
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
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
clean: ## make clean # removed all $(DESTDIR) contents
@echo "----- Cleaning old build -----"