Skip to content
Snippets Groups Projects
Unverified Commit 338ed05d authored by Timo Furrer's avatar Timo Furrer
Browse files

Fix image version

parent 30add0c3
Branches 143-licensing
Tags
No related merge requests found
......@@ -61,7 +61,11 @@ gitlab-opentofu-image:deploy:
entrypoint: [""]
variables:
RELEASE_IMAGE_NAME: "$CI_REGISTRY_IMAGE/gitlab-opentofu"
RELEASE_SEMVER: "${CI_COMMIT_TAG}+opentofu-${OPENTOFU_VERSION}"
# OCI image tags are not compatible with semver, specifically the build metadata part
# indicated with a `+` sign, see https://github.com/distribution/distribution/issues/1201
# We use a dash `-` here, instead of the `+`.
# This may be problematic, because it indicates a semver prerelease.
RELEASE_SEMVER: "${CI_COMMIT_TAG}-opentofu${OPENTOFU_VERSION}"
before_script:
- crane auth login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
script:
......@@ -77,7 +81,7 @@ gitlab-opentofu-image:latest:deploy:
variables:
OPENTOFU_VERSION: $LATEST_OPENTOFU_VERSION
RELEASE_IMAGE_NAME: "$CI_REGISTRY_IMAGE/gitlab-opentofu"
RELEASE_SEMVER: "${CI_COMMIT_TAG}+opentofu"
RELEASE_SEMVER: "${CI_COMMIT_TAG}-opentofu"
before_script:
- crane auth login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
script:
......
......@@ -27,7 +27,10 @@ spec:
# Images
gitlab_opentofu_image:
default: '$CI_REGISTRY/components/opentofu/gitlab-opentofu-$[[ inputs.opentofu_version ]]'
# FIXME: This should reference the component tag that is used.
# Currently, blocked by https://gitlab.com/gitlab-org/gitlab/-/issues/438275
# default: '$CI_REGISTRY/components/opentofu/gitlab-opentofu:$[[ inputs.opentofu_version ]]'
default: '$CI_REGISTRY/components/opentofu/gitlab-opentofu:latest'
description: 'Image name of the gitlab-opentofu image'
# Configuration
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment