Skip to content

Commit 8cd407e

Browse files
committed
build.sh: Cleanup old annotations and add 'created' date
1 parent da49d1f commit 8cd407e

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
@@ -129,6 +129,8 @@ cmd buildah run "$CONTAINER" -- \
129129

130130
cleanup "$CONTAINER"
131131

132+
con_cleanup "$CONTAINER"
133+
132134
cmd buildah config \
133135
--env GLOWING_BEAR_VERSION="$VERSION" \
134136
--env GLOWING_BEAR_HASH="$HASH" \
@@ -154,6 +156,7 @@ cmd buildah config \
154156
--annotation org.opencontainers.image.licenses="MIT" \
155157
--annotation org.opencontainers.image.base.name="$BASE_IMAGE" \
156158
--annotation org.opencontainers.image.base.digest="$(podman image inspect --format '{{.Digest}}' "$BASE_IMAGE")" \
159+
--annotation org.opencontainers.image.created="$(date -u +'%+4Y-%m-%dT%H:%M:%SZ')" \
157160
"$CONTAINER"
158161

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

0 commit comments

Comments
 (0)