feat: add image version as label to built images

This commit is contained in:
Jose Diaz-Gonzalez committed 2024-03-06 09:09:20 -05:00
1 parent da77104f89
commit d5168088b8
1 file changed
+2
+2
View File
@@ -390,12 +390,14 @@ fn-build-docker-image() {
--platform linux/arm64,linux/amd64 \ --platform linux/arm64,linux/amd64 \
--progress plain \ --progress plain \
--push \ --push \
--label "org.opencontainers.image.version=$VERSION" \
--tag "dokku/dokku:latest" \ --tag "dokku/dokku:latest" \
--tag "dokku/dokku:$VERSION" . --tag "dokku/dokku:$VERSION" .
elif [[ "$SKIP_IMAGE_BUILD" != "true" ]]; then elif [[ "$SKIP_IMAGE_BUILD" != "true" ]]; then
docker buildx build \ docker buildx build \
--platform linux/arm64,linux/amd64 \ --platform linux/arm64,linux/amd64 \
--progress plain \ --progress plain \
--label "org.opencontainers.image.version=$VERSION" \
--tag "dokku/dokku:latest" \ --tag "dokku/dokku:latest" \
--tag "dokku/dokku:$(echo "$VERSION" | tr + -)" . --tag "dokku/dokku:$(echo "$VERSION" | tr + -)" .
fi fi