Skip to content
Snippets Groups Projects

Upgrade to Fedora 32 as base image

Merged Sheogorath requested to merge upgrade/fedora-32 into master

Files

include:
local: /gitlab-ci-template.yml
stages:
- build
- test
- tag
variables:
CI_REGISTRY_IMAGE_VERSION: "1.0.0"
CI_REGISTRY_IMAGE_VERSION: "1.1.0"
CI_REGISTRY_BUILD_ARG: "--build-arg 0.2.0"
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
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:
only:
- master
Loading