Skip to content
Snippets Groups Projects
Commit f855dbc0 authored by João Alexandre Cunha's avatar João Alexandre Cunha
Browse files

Merge branch 'fix-opentofu-registry-path' into 'master'

fix: resolved a length issue with opentofu registry path

Closes #114

See merge request https://gitlab.com/gitlab-org/terraform-images/-/merge_requests/248



Merged-by: default avatarJoão Alexandre Cunha <j.a.cunha@gmail.com>
Approved-by: default avatarJoão Alexandre Cunha <j.a.cunha@gmail.com>
Co-authored-by: default avatarPatrick Rice <patrick.rice@kingland.com>
parents ce60cf00 43e8d023
No related branches found
No related tags found
No related merge requests found
......@@ -200,12 +200,12 @@ release-tofu:
name: gcr.io/go-containerregistry/crane:debug
entrypoint: [""]
variables:
RELEASE_IMAGE_NAME: "$CI_REGISTRY_IMAGE/releases/tofu/$TOFU_VERSION"
RELEASE_IMAGE_NAME: "$CI_REGISTRY_IMAGE/releases-tofu/$TOFU_VERSION"
script:
# https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_copy.md
- crane auth login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
- crane copy "$TOFU_IMAGE_NAME" "$RELEASE_IMAGE_NAME:latest"
- crane copy "$TOFU_IMAGE_NAME" "$CI_REGISTRY_IMAGE/releases/tofu:$TOFU_BINARY_VERSION"
- crane copy "$TOFU_IMAGE_NAME" "$CI_REGISTRY_IMAGE/releases-tofu:$TOFU_BINARY_VERSION"
- crane copy "$TOFU_IMAGE_NAME" "$RELEASE_IMAGE_NAME:$CI_COMMIT_TAG"
# Removed the "stable" release for now, since tofu is still in beta itself
rules:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment