Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
Terraform Images
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
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
rc
Terraform Images
Commits
5308a8e5
Unverified
Commit
5308a8e5
authored
1 year ago
by
Birger J. Nordølum
Browse files
Options
Downloads
Patches
Plain Diff
fix: remove manual installation of buildx
parent
6f68d1b3
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
+7
-6
7 additions, 6 deletions
.gitlab-ci.yml
with
7 additions
and
6 deletions
.gitlab-ci.yml
+
7
−
6
View file @
5308a8e5
...
...
@@ -96,12 +96,13 @@ build:
-
"
$DOCKER_DIND_IMAGE"
image
:
"
$DOCKER_DIND_IMAGE"
before_script
:
# Install buildx
-
mkdir -p ~/.docker/cli-plugins
-
wget "https://github.com/docker/buildx/releases/download/v$BUILDX_VERSION/buildx-v$BUILDX_VERSION.linux-amd64" -O ~/.docker/cli-plugins/docker-buildx
-
chmod a+x ~/.docker/cli-plugins/docker-buildx
# See https://www.docker.com/blog/multi-platform-docker-builds/
-
docker run --rm --privileged docker/binfmt:a7996909642ee92942dcd6cff44b9b95f08dad64
# See https://docs.docker.com/build/building/multi-platform/#qemu
# To be able to build for arm64 which is not native to hosted runners,
# we need to inject a stub for being able to do so.
#
# The container below is used by the docs article above and hence
# considered upstream, even though it's in a non-Docker namespace.
-
docker run --rm --privileged tonistiigi/binfmt
# Registry auth
-
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
script
:
...
...
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