Files
EpicNext-Cms/src/test/publish-container-harness.sh
T
Simo c389c3893d
CI / check (push) Successful in 52s
CI / deploy (push) Successful in 2m10s
CI / publish-container (push) Failing after 1m18s
feat(cms): improve catalog, editorial recovery and operations
2026-09-09 19:36:15 +02:00

15 lines
581 B
Bash

git() { if [ "$1" = rev-parse ]; then echo "$TEST_SHA"; fi; }
tar() { cat >/dev/null; }
node() { echo "verify $*" >> "$TEST_DIR/calls"; }
docker() {
echo "docker $*" >> "$TEST_DIR/calls"
if [ "$1" = login ]; then cat >/dev/null; return; fi
if [ "$1 $2" = "image inspect" ]; then
if [[ "$*" = *org.opencontainers.image.revision* ]]; then echo "$TEST_SHA"
elif [[ "${@: -1}" = *verified-* ]]; then
case "$SCENARIO" in verified) echo sha256:candidate ;; mismatch) echo sha256:other ;; *) return 1 ;; esac
else echo sha256:candidate; fi
fi
}
export -f git tar node docker