From 0e316b27b1a8836240e4ca5f0de0f0888a5b294d Mon Sep 17 00:00:00 2001 From: luaneko Date: Wed, 26 Mar 2025 18:54:57 +1100 Subject: [PATCH] Add tag argument to Dockerfile --- Dockerfile | 3 ++- build | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 420047c..cab568b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,5 @@ -FROM ghcr.io/goauthentik/server:latest +ARG TAG="latest" +FROM ghcr.io/goauthentik/server:${TAG} COPY ./custom.css /web/dist/custom.css COPY ./assets/icons/ /web/dist/assets/icons/ diff --git a/build b/build index b1d4017..e887b22 100755 --- a/build +++ b/build @@ -4,5 +4,5 @@ tag="${1:-latest}" image="$name:$tag" echo "Building $image..." -podman build -t "$image" --pull . +podman build -t "$image" --pull --build-arg "TAG=$tag" . podman push "$image"