mirror of
https://github.com/dokku/dokku.git
synced 2025-12-28 16:06:40 +01:00
feat: add image version as label to built images
This commit is contained in:
@@ -390,12 +390,14 @@ fn-build-docker-image() {
|
||||
--platform linux/arm64,linux/amd64 \
|
||||
--progress plain \
|
||||
--push \
|
||||
--label "org.opencontainers.image.version=$VERSION" \
|
||||
--tag "dokku/dokku:latest" \
|
||||
--tag "dokku/dokku:$VERSION" .
|
||||
elif [[ "$SKIP_IMAGE_BUILD" != "true" ]]; then
|
||||
docker buildx build \
|
||||
--platform linux/arm64,linux/amd64 \
|
||||
--progress plain \
|
||||
--label "org.opencontainers.image.version=$VERSION" \
|
||||
--tag "dokku/dokku:latest" \
|
||||
--tag "dokku/dokku:$(echo "$VERSION" | tr + -)" .
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user