Skip to content

Commit 9132697

Browse files
committed
build.sh: Cleanup old annotations and add 'created' date
1 parent 769209c commit 9132697

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

7575
cleanup "$CONTAINER"
7676

77+
con_cleanup "$CONTAINER"
78+
7779
cmd buildah config \
7880
--env LIMESURVEY_VERSION="$VERSION" \
7981
--env LIMESURVEY_HASH="$HASH" \
@@ -98,6 +100,7 @@ cmd buildah config \
98100
--annotation org.opencontainers.image.licenses="MIT" \
99101
--annotation org.opencontainers.image.base.name="$BASE_IMAGE" \
100102
--annotation org.opencontainers.image.base.digest="$(podman image inspect --format '{{.Digest}}' "$BASE_IMAGE")" \
103+
--annotation org.opencontainers.image.created="$(date -u +'%+4Y-%m-%dT%H:%M:%SZ')" \
101104
"$CONTAINER"
102105

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

0 commit comments

Comments
 (0)