Settle what the checks of the review fixes found
A difference that comes and goes no longer makes the account ask about a stop the user has already chosen on. The balance of the restrictions adds each period to what was published, so a change of capital does not rewrite the past. An image is published only under a tag that exists, and a file that is not part of it no longer marks it as unclean. refs #70 #74 #75 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d26d945818
commit
8d7efe425d
8 files changed
+199
-23
No files matched your search
@@ -23,8 +23,12 @@ expected=$(sed -n 's:.*<Version>\(.*\)</Version>.*:\1:p' "$root/Directory.Build.
|
||||
name="$REGISTRY/balbosoft/anubis"
|
||||
|
||||
# The image says what it was made from (its labels): only what comes from the commit of the tag is published as that tag.
|
||||
# Without the tag here, as in the CI, the commit checked out is the tag's.
|
||||
commit=$(git -C "$root" rev-parse --verify --quiet "refs/tags/$tag^{commit}" || git -C "$root" rev-parse --verify --quiet HEAD) || fail "non riesco a leggere il commit del tag."
|
||||
# Without the tag here, as in the CI, the repository on Gitea says its commit: the line with ^{} for an annotated tag.
|
||||
commit=$(git -C "$root" rev-parse --verify --quiet "refs/tags/$tag^{commit}") || {
|
||||
found=$(git -C "$root" ls-remote origin "refs/tags/$tag" "refs/tags/$tag^{}") || fail "non riesco a leggere i tag del repository."
|
||||
commit=$(printf '%s\n' "$found" | sort -k 2 | tail -n 1 | cut -f 1)
|
||||
}
|
||||
[ -n "$commit" ] || fail "il tag $tag non c'è, né qui né nel repository: crealo prima di pubblicare."
|
||||
label() {
|
||||
docker image inspect --format "{{ index .Config.Labels \"org.opencontainers.image.$1\" }}" "$image"
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user