Files
nextcloud-docker-dev/Makefile
T
Julius Härtl b303067535 Simplify gs config a bit
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-01-05 11:47:47 +01:00

25 lines
858 B
Makefile

.PHONY: images
.ONESHELL:
images:
for file in $$(find docker/ -maxdepth 1 -type f -iname 'Dockerfile.*'); do \
NAME=$$(echo $$file | sed 's/^.*\.//'); echo "=> Building image $$NAME"; \
(cd docker && docker build -t ghcr.io/juliushaertl/nextcloud-dev-$$NAME:latest -f Dockerfile.$$NAME .)
done
.PHONY: pull
.ONESHELL:
pull:
for file in $$(find docker/ -maxdepth 1 -type f -iname 'Dockerfile.*'); do \
NAME=$$(echo $$file | sed 's/^.*\.//'); echo "=> Pulling image $$NAME"; docker pull "ghcr.io/juliushaertl/nextcloud-dev-$${NAME}";
done
check: dockerfilelint shellcheck
.ONESHELL:
dockerfilelint:
for file in $$(find docker/ -type f -iname 'Dockerfile.*' -maxdepth 1); do dockerfilelint $$file; done;
.ONESHELL:
shellcheck:
for file in $(find . -type f -iname '*.sh' -not -path './docker/3rdparty/*'); do shellcheck --format=gcc $file; done;