Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
templates
Manage
Activity
Members
Labels
Plan
Issues
0
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
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
docker images
templates
Commits
940a7345
Commit
940a7345
authored
5 months ago
by
Andri Joos
Browse files
Options
Downloads
Patches
Plain Diff
Update images.gitlab-ci.yml
parent
7bb6fd15
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
images.gitlab-ci.yml
+3
-4
3 additions, 4 deletions
images.gitlab-ci.yml
with
3 additions
and
4 deletions
images.gitlab-ci.yml
+
3
−
4
View file @
940a7345
include
:
-
local
:
image_variables.gitlab-ci.yml
stages
:
-
build
variables
:
IMAGE_SERVER
:
registry.420joos.dev
DOCKER_BUILDX_IMAGE
:
${IMAGE_SERVER}/docker-buildx:1.1
DOCKER_BUILDX_CONTEXT_NAME
:
autobuilder
DOCKER_BUILDX_PLATFORMS
:
linux/amd64,linux/arm64
DOCKER_BUILDX_CREATE_CMD
:
docker buildx create --name $DOCKER_BUILDX_CONTEXT_NAME --platform $DOCKER_BUILDX_PLATFORMS --driver docker-container --bootstrap
# --config testbuilder.toml only needed when using http image registry
...
...
@@ -30,6 +29,6 @@ variables:
-
$DOCKER_LOGIN_CMD
-
$DOCKER_PREPARE_CMD
-
$DOCKER_BUILDX_CREATE_CMD
-
docker buildx build $IMAGE_PATH $(echo $IMAGE_NAME | awk -F',' '{for (i=1; i<=NF; i++) printf "--tag %s ", $i}') --platform $DOCKER_BUILDX_PLATFORMS --builder $DOCKER_BUILDX_CONTEXT_NAME --push
--build-arg IMAGE_SERVER="$IMAGE_SERVER
"
-
docker buildx build $IMAGE_PATH $(echo $IMAGE_NAME | awk -F',' '{for (i=1; i<=NF; i++) printf "--tag %s ", $i}') --platform $DOCKER_BUILDX_PLATFORMS --builder $DOCKER_BUILDX_CONTEXT_NAME --push"
-
$DOCKER_BUILDX_DELETE_CMD
-
$DOCKER_LOGOUT_CMD
This diff is collapsed.
Click to expand it.
Preview
0%
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