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

Release complete set of image

parent f58802c6
Branches
No related tags found
No related merge requests found
...@@ -92,7 +92,7 @@ container_scanning: ...@@ -92,7 +92,7 @@ container_scanning:
CS_IMAGE: $GITLAB_OPENTOFU_IMAGE_NAME CS_IMAGE: $GITLAB_OPENTOFU_IMAGE_NAME
CS_SCHEMA_MODEL: 15 CS_SCHEMA_MODEL: 15
gitlab-opentofu-image:deploy: gitlab-opentofu-image:deploy:with-opentofu-version:
extends: .opentofu-versions extends: .opentofu-versions
stage: deploy stage: deploy
image: image:
...@@ -112,7 +112,23 @@ gitlab-opentofu-image:deploy: ...@@ -112,7 +112,23 @@ gitlab-opentofu-image:deploy:
rules: rules:
- if: $CI_COMMIT_TAG - if: $CI_COMMIT_TAG
gitlab-opentofu-image:latest:deploy: gitlab-opentofu-image:deploy:latest-with-opentofu-version:
extends: .opentofu-versions
stage: deploy
image:
name: gcr.io/go-containerregistry/crane:debug
entrypoint: [""]
variables:
RELEASE_IMAGE_NAME: "$CI_REGISTRY_IMAGE/gitlab-opentofu"
RELEASE_SEMVER: "latest-opentofu${OPENTOFU_VERSION}"
before_script:
- crane auth login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
script:
- crane copy "$GITLAB_OPENTOFU_IMAGE_NAME" "$RELEASE_IMAGE_NAME:$RELEASE_SEMVER"
rules:
- if: $CI_COMMIT_TAG
gitlab-opentofu-image:deploy:latest:
stage: deploy stage: deploy
image: image:
name: gcr.io/go-containerregistry/crane:debug name: gcr.io/go-containerregistry/crane:debug
...@@ -129,8 +145,8 @@ gitlab-opentofu-image:latest:deploy: ...@@ -129,8 +145,8 @@ gitlab-opentofu-image:latest:deploy:
parallel: parallel:
matrix: matrix:
- RELEASE_IMAGE_TAG: ${CI_COMMIT_TAG} - RELEASE_IMAGE_TAG: ${CI_COMMIT_TAG}
- RELEASE_IMAGE_TAG: ${CI_COMMIT_TAG}-opentofu
- RELEASE_IMAGE_TAG: ${CI_COMMIT_TAG}-opentofulatest - RELEASE_IMAGE_TAG: ${CI_COMMIT_TAG}-opentofulatest
- RELEASE_IMAGE_TAG: latest-opentofulatest
- RELEASE_IMAGE_TAG: latest - RELEASE_IMAGE_TAG: latest
# If the pipeline is for a new tag with a semantic version, and all previous jobs succeed, # If the pipeline is for a new tag with a semantic version, and all previous jobs succeed,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment