Improve building special images

This commit is contained in:
Florian Zirker 2025-07-23 09:34:25 +02:00
parent 9a1ae65708
commit 4fe31b5135
6 changed files with 23 additions and 6 deletions

View file

@ -8,8 +8,8 @@ tasks:
pull:
desc: Pull all images for {{.NAME}} and build images
dir: "{{.TASKFILE_DIR}}"
deps: [build]
cmds:
- docker compose build --pull
- docker compose pull --ignore-buildable
up:
@ -18,6 +18,13 @@ tasks:
cmds:
- docker compose up -d
build:
desc: "Building special Nextcloud image (Mainly install software)"
dir: "{{.TASKFILE_DIR}}"
dotenv: [.env]
cmds:
- docker build --pull --build-arg NC_MAIN_VERSION=$NC_MAIN_VERSION --tag $DOCKER_REGISTRY/nextcloud:${NC_MAIN_VERSION}-fpm .
down:
desc: Stop {{.NAME}} docker compose
dir: "{{.TASKFILE_DIR}}"