Add tag argument to Dockerfile

This commit is contained in:
lumi 2025-03-26 18:54:57 +11:00
parent 6ea98cfd1c
commit 0e316b27b1
Signed by: luaneko
GPG Key ID: 406809B8763FF07A
2 changed files with 3 additions and 2 deletions

View File

@ -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 ./custom.css /web/dist/custom.css
COPY ./assets/icons/ /web/dist/assets/icons/ COPY ./assets/icons/ /web/dist/assets/icons/

2
build
View File

@ -4,5 +4,5 @@ tag="${1:-latest}"
image="$name:$tag" image="$name:$tag"
echo "Building $image..." echo "Building $image..."
podman build -t "$image" --pull . podman build -t "$image" --pull --build-arg "TAG=$tag" .
podman push "$image" podman push "$image"