From a31fd40a615c1017c971233dc56a384231c0f133 Mon Sep 17 00:00:00 2001 From: pika Date: Wed, 2 Apr 2025 10:23:19 +0200 Subject: [PATCH] Addet container registry and changed compose to use it directly! --- compose.yml | 2 +- src/build.sh | 23 ++++++++++++++++++++++- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/compose.yml b/compose.yml index bbc1fee..c87adb5 100644 --- a/compose.yml +++ b/compose.yml @@ -3,7 +3,7 @@ services: # │ Server mode │ # ╰─────────────╯ caddydb-server: - image: caddydb:latest + image: git.k4li.de/docker/caddydb:latest ports: - "5000:5000" environment: diff --git a/src/build.sh b/src/build.sh index 30d49a6..3b0cdb0 100755 --- a/src/build.sh +++ b/src/build.sh @@ -17,12 +17,33 @@ command_exists() { command -v "$@" >/dev/null 2>&1 } +registry="git.k4li.de" image="caddydb" +org="docker" tag="latest" +container_="${registry}/${org}/${image}:${tag}" + +D_push() { + docker push "${container_}" +} + if command_exists docker; then if [ -e ./Dockerfile ]; then - docker build -t "${image}:${tag}" . + docker build -t "${container_}" . + + echo_info "Do you also want to push ${container_} ? (Y/n): " + read -r askPush