Skip to content

Commit 6e5be39

Browse files
committed
build.sh: Cleanup old annotations and add 'created' date
1 parent 51fb58b commit 6e5be39

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
@@ -109,6 +109,8 @@ rm -rf "$MOUNT/usr/src/acme-mgmt"
109109
# finalize image
110110
cleanup "$CONTAINER"
111111

112+
con_cleanup "$CONTAINER"
113+
112114
cmd buildah config \
113115
--env ACME_TINY_VERSION="$ACME_TINY_VERSION" \
114116
--env ACME_TINY_HASH="$ACME_TINY_HASH" \
@@ -137,6 +139,7 @@ cmd buildah config \
137139
--annotation org.opencontainers.image.licenses="MIT" \
138140
--annotation org.opencontainers.image.base.name="$BASE_IMAGE" \
139141
--annotation org.opencontainers.image.base.digest="$(podman image inspect --format '{{.Digest}}' "$BASE_IMAGE")" \
142+
--annotation org.opencontainers.image.created="$(date -u +'%+4Y-%m-%dT%H:%M:%SZ')" \
140143
"$CONTAINER"
141144

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

0 commit comments

Comments
 (0)