Skip to content
Snippets Groups Projects
Verified Commit 94f91a01 authored by Alexander Wellbrock's avatar Alexander Wellbrock
Browse files

shell-tools: remove latest test

The latest test is incompatible with the full-metadata approach.

Could be restored, when legacy tagging is restored as well.
parent 79f9f29a
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,5 @@ shell-tools-test:
image: $CI_REGISTRY_IMAGE:latest
stage: shell-tools-test
script:
- ./resources/shell-tools/test/latest.sh
- ./resources/shell-tools/test/fix-dockerfile-pinning.sh
- ./resources/shell-tools/test/multiarch.sh
#!/bin/bash
set -o pipefail
set -u
BASEDIR=$(dirname "$0")
podman build -t mytest-latest:test -f- <<EOF
FROM scratch
EOF
TEST_OUTPUT="$(mktemp)"
TEST_VERIFY_OUTPUT="$(mktemp)"
"$BASEDIR"/../bin/tagging.sh -l mytest-latest:test registry.example.com/latest-test 1.2.3
podman images --format "{{.Repository}}:{{.Tag}}" registry.example.com/latest-test | grep registry.example.com/latest-test > "$TEST_OUTPUT" 2>&1
podman images --format "{{.Repository}}:{{.Tag}}" registry.example.com/latest-test | grep registry.example.com/latest-test
cat >"$TEST_VERIFY_OUTPUT" <<EOF
registry.example.com/latest-test:1
registry.example.com/latest-test:1.2
registry.example.com/latest-test:1.2.3
registry.example.com/latest-test:latest
EOF
diff "$TEST_OUTPUT" "$TEST_VERIFY_OUTPUT"
EXIT_CODE=$?
rm -f "$TEST_OUTPUT" "$TEST_VERIFY_OUTPUT"
podman rmi -f "$(podman images -q mytest-latest:test)"
exit $EXIT_CODE
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment