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