Added deploy Makefile target

This commit is contained in:
Julien Dessaux 2022-09-13 00:10:44 +02:00
parent f754d71881
commit 6ecb37d1e6
Signed by: adyxax
GPG key ID: F92E51B86E07177E

View file

@ -21,6 +21,11 @@ clean: ## make clean # removed all $(DESTDIR) contents
rm -f search/index.html search/index.json search/search rm -f search/index.html search/index.json search/search
rm -rf $(DESTDIR) rm -rf $(DESTDIR)
.PHONY: deploy
deploy: ## make deploy # deploy the website the active kubernetes context
sed -i deploy/www.yaml -e 's/^\(\s*image:[^:]*:\).*$$/\1$(REVISION)/'
kubectl apply -f deploy/www.yaml
.PHONY: push .PHONY: push
push: ## make push # push the built images to quay.io push: ## make push # push the built images to quay.io
buildah push adyxax/www quay.io/adyxax/www:$(REVISION) buildah push adyxax/www quay.io/adyxax/www:$(REVISION)