From d5168088b8daf746305d4ef127ecaf7529dbe1dd Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Wed, 6 Mar 2024 09:09:20 -0500 Subject: [PATCH] feat: add image version as label to built images --- contrib/release-dokku | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/release-dokku b/contrib/release-dokku index 255835607..f1cc52b3b 100755 --- a/contrib/release-dokku +++ b/contrib/release-dokku @@ -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