Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OpenTofu
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
components
OpenTofu
Commits
15480410
Commit
15480410
authored
11 months ago
by
Timo Furrer
Browse files
Options
Downloads
Patches
Plain Diff
Revert "Merge branch 'buildah' into 'main'"
This reverts merge request !106
parent
d5f4e143
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+20
-4
20 additions, 4 deletions
.gitlab-ci.yml
with
20 additions
and
4 deletions
.gitlab-ci.yml
+
20
−
4
View file @
15480410
...
...
@@ -63,6 +63,9 @@ stages:
-
OPENTOFU_VERSION
:
!reference
[
.data
,
supported_versions
]
variables
:
# Pipeline configuration
DOCKER_DIND_IMAGE
:
"
docker:26.1.4-dind"
# OpenTofu variables
LATEST_OPENTOFU_VERSION
:
!reference
[
.data
,
latest_version
]
...
...
@@ -85,18 +88,31 @@ check-semantic-version:
gitlab-opentofu-image:build
:
extends
:
.opentofu-versions
stage
:
build
image
:
quay.io/containers/buildah:v1.36.0
services
:
-
"
$DOCKER_DIND_IMAGE"
image
:
"
$DOCKER_DIND_IMAGE"
before_script
:
-
buildah login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
-
apk add git
# See note on the `build terraform` job about this image
-
docker run --rm --privileged tonistiigi/binfmt
# Registry auth
-
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
script
:
-
buildah build
-
docker buildx create --use
# NOTE: we disable provenance for now
# because it causes troubles with the registry and older clients.
# See
# - https://gitlab.com/gitlab-org/terraform-images/-/issues/104
# - https://gitlab.com/gitlab-org/terraform-images/-/merge_requests/184#note_1328485943
-
docker buildx build
--platform "$PLATFORMS"
--build-arg BASE_IMAGE=$BASE_IMAGE
--build-arg OPENTOFU_VERSION=$OPENTOFU_VERSION
--file Dockerfile
--tag "$GITLAB_OPENTOFU_IMAGE_NAME"
--provenance=false
--push
.
-
buildah push "$GITLAB_OPENTOFU_IMAGE_NAME"
rules
:
-
if
:
$CI_COMMIT_TAG
-
changes
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment