Reworked the building of the website in a container with buildah

This commit is contained in:
Julien Dessaux 2022-09-06 00:40:46 +02:00
parent ae86aba801
commit a300c14972
Signed by: adyxax
GPG key ID: F92E51B86E07177E
2 changed files with 39 additions and 26 deletions

View file

@ -10,6 +10,10 @@ build: ## make build # builds an optimized version of the website in $(DESTDIR)
cp public/search/index.html search/
(cd search && CGO_ENABLED=0 go build -ldflags '-s -w -extldflags "-static"' ./search.go)
.PHONY: buildah
buildah: ## make buildah # builds the container images
deploy/build-image.sh
.PHONY: clean
clean: ## make clean # removed all $(DESTDIR) contents
@echo "----- Cleaning old build -----"