Skip to content

Commit 70968b9

Browse files
committed
build.sh: Cleanup old annotations and add 'created' date
1 parent 88f4838 commit 70968b9

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ VERSION="$(pkg_version "$CONTAINER" unbound)"
6060

6161
cleanup "$CONTAINER"
6262

63+
con_cleanup "$CONTAINER"
64+
6365
cmd buildah config \
6466
--env UNBOUND_VERSION="$VERSION" \
6567
"$CONTAINER"
@@ -83,6 +85,7 @@ cmd buildah config \
8385
--annotation org.opencontainers.image.licenses="MIT" \
8486
--annotation org.opencontainers.image.base.name="$BASE_IMAGE" \
8587
--annotation org.opencontainers.image.base.digest="$(podman image inspect --format '{{.Digest}}' "$BASE_IMAGE")" \
88+
--annotation org.opencontainers.image.created="$(date -u +'%+4Y-%m-%dT%H:%M:%SZ')" \
8689
"$CONTAINER"
8790

8891
con_commit "$CONTAINER" "$IMAGE" "${TAGS[@]}"

0 commit comments

Comments
 (0)