Align makefile help message
This commit is contained in:
parent
b965306b26
commit
dcc1dbd007
1 changed files with 6 additions and 6 deletions
12
Makefile
12
Makefile
|
@ -4,7 +4,7 @@ HOSTNAME=$(shell hostname)
|
||||||
REVISION=$(shell git rev-parse HEAD)
|
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)
|
||||||
@echo "----- Generating site -----"
|
@echo "----- Generating site -----"
|
||||||
hugo --gc --minify --cleanDestinationDir -d $(DESTDIR) --cacheDir $(CACHEDIR)
|
hugo --gc --minify --cleanDestinationDir -d $(DESTDIR) --cacheDir $(CACHEDIR)
|
||||||
cp public/index.json search/
|
cp public/index.json search/
|
||||||
|
@ -12,27 +12,27 @@ build: ## make build # builds an optimized version of the website in $(DESTDIR)
|
||||||
(cd search && CGO_ENABLED=0 go build -ldflags '-s -w -extldflags "-static"' ./search.go)
|
(cd search && CGO_ENABLED=0 go build -ldflags '-s -w -extldflags "-static"' ./search.go)
|
||||||
|
|
||||||
.PHONY: buildah
|
.PHONY: buildah
|
||||||
buildah: ## make buildah # builds the container images
|
buildah: ## make buildah # builds the container images
|
||||||
deploy/build-image.sh
|
deploy/build-image.sh
|
||||||
|
|
||||||
.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 -----"
|
||||||
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
|
.PHONY: deploy
|
||||||
deploy: ## make deploy # deploy the website the active kubernetes context
|
deploy: ## make deploy # deploy the website the active kubernetes context
|
||||||
sed -i deploy/www.yaml -e 's/^\(\s*image:[^:]*:\).*$$/\1$(REVISION)/'
|
sed -i deploy/www.yaml -e 's/^\(\s*image:[^:]*:\).*$$/\1$(REVISION)/'
|
||||||
kubectl apply -f deploy/www.yaml
|
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)
|
||||||
buildah push adyxax/www-search quay.io/adyxax/www-search:$(REVISION)
|
buildah push adyxax/www-search quay.io/adyxax/www-search:$(REVISION)
|
||||||
|
|
||||||
.PHONY: serve
|
.PHONY: serve
|
||||||
serve: ## make serve # hugo web server development mode
|
serve: ## make serve # hugo web server development mode
|
||||||
hugo serve --disableFastRender --noHTTPCache --cacheDir $(CACHEDIR) --bind 0.0.0.0 --port 1313 -b http://$(HOSTNAME):1313/
|
hugo serve --disableFastRender --noHTTPCache --cacheDir $(CACHEDIR) --bind 0.0.0.0 --port 1313 -b http://$(HOSTNAME):1313/
|
||||||
|
|
||||||
help:
|
help:
|
||||||
|
|
Loading…
Add table
Reference in a new issue