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

fix test for manifest based build

Don't test the tagging tools, since we already do this in a separate
job.
parent 92719317
No related branches found
No related tags found
No related merge requests found
Pipeline #5431 passed
......@@ -10,30 +10,19 @@ stages:
- tag
variables:
CI_REGISTRY_IMAGE_VERSION: "1.3.0"
CI_REGISTRY_BUILD_ARG: "--build-arg SI_TOOLS_VERSION=0.3.1"
CI_REGISTRY_IMAGE_VERSION: "2.0.0"
CI_CONTAINER_BUILD_ARCHS: "amd64:arm64"
container-test:
stage: test
inherit:
default: false
variables:
- CI_REGISTRY
- CI_REGISTRY_USER
- CI_REGISTRY_PASSWORD
- CI_REGISTRY_IMAGE
- CI_REGISTRY_BUILD_ARGS
image: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA
variables: true
image: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA-amd64
before_script:
- podman login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script:
- podman build --pull $CI_REGISTRY_BUILD_ARGS -t "build-image:test" .
- si-tagging -l "build-image:test" "example.com/tagging-image" "0.1.2.3"
- podman images --format "{{.Repository}}:{{.Tag}}" | grep -Pe "^example.com/tagging-image:0.1.2$"
- podman images --format "{{.Repository}}:{{.Tag}}" | grep "latest"
- podman images --format "{{.Repository}}:{{.Tag}}" | grep -Pe "^example.com/tagging-image:0$"
container-tagging:
stage: tag
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment