fix(ci): use canonical migration inventory size
This commit is contained in:
@@ -46,7 +46,7 @@ jobs:
|
|||||||
test "$(docker image inspect "$IMAGE@$version_digest" --format '{{index .Config.Labels "org.opencontainers.image.revision"}}')" = "$COMMIT"
|
test "$(docker image inspect "$IMAGE@$version_digest" --format '{{index .Config.Labels "org.opencontainers.image.revision"}}')" = "$COMMIT"
|
||||||
test "$(docker image inspect "$IMAGE@$version_digest" --format '{{index .Config.Labels "org.opencontainers.image.source"}}')" = https://github.com/fourblocks2020/trex-core
|
test "$(docker image inspect "$IMAGE@$version_digest" --format '{{index .Config.Labels "org.opencontainers.image.source"}}')" = https://github.com/fourblocks2020/trex-core
|
||||||
test "$(docker image inspect "$IMAGE@$version_digest" --format '{{json .Config.Entrypoint}}')" = '["trex-core-daemon"]'
|
test "$(docker image inspect "$IMAGE@$version_digest" --format '{{json .Config.Entrypoint}}')" = '["trex-core-daemon"]'
|
||||||
test "$(docker run --rm --entrypoint python "$IMAGE@$version_digest" -c 'from trex_core.adapters.persistence.migrate import migration_files; p=migration_files(); print(f"count={len(p)} last={p[-1].name}")')" = 'count=22 last=022_persist_order_timeout_anchor.sql'
|
test "$(docker run --rm --entrypoint python "$IMAGE@$version_digest" -c 'from trex_core.adapters.persistence.migrate import migration_files; p=migration_files(); print(f"count={len(p)} last={p[-1].name}")')" = 'count=21 last=022_persist_order_timeout_anchor.sql'
|
||||||
|
|
||||||
if docker buildx imagetools inspect "$IMAGE:latest" >/dev/null 2>&1; then
|
if docker buildx imagetools inspect "$IMAGE:latest" >/dev/null 2>&1; then
|
||||||
echo "mutable latest selector exists" >&2
|
echo "mutable latest selector exists" >&2
|
||||||
@@ -67,6 +67,6 @@ jobs:
|
|||||||
echo "- architecture: \`linux/amd64\`"
|
echo "- architecture: \`linux/amd64\`"
|
||||||
echo "- runtime user: \`10001:10001\`"
|
echo "- runtime user: \`10001:10001\`"
|
||||||
echo "- entrypoint: \`trex-core-daemon\`"
|
echo "- entrypoint: \`trex-core-daemon\`"
|
||||||
echo "- migration inventory: \`22\`, last \`022_persist_order_timeout_anchor.sql\`"
|
echo "- migration inventory: \`21\`, last \`022_persist_order_timeout_anchor.sql\`"
|
||||||
echo "- latest: absent"
|
echo "- latest: absent"
|
||||||
} >> "$GITHUB_STEP_SUMMARY"
|
} >> "$GITHUB_STEP_SUMMARY"
|
||||||
|
|||||||
Reference in New Issue
Block a user