Merge pull request #6673 from dokku/image-version

Add image version as label to built images
This commit is contained in:
Jose Diaz-Gonzalez
2024-03-06 09:09:53 -05:00
committed by GitHub

View File

@@ -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