feat: add image version as label to built images

This commit is contained in:
Jose Diaz-Gonzalez
2024-03-06 09:09:20 -05:00
parent da77104f89
commit d5168088b8

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