Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
Fess Search engine
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
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
Service Desk
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
Jonas Leder
Fess Search engine
Commits
449090c3
Commit
449090c3
authored
2 years ago
by
Jonas Leder
Browse files
Options
Downloads
Patches
Plain Diff
build docker image
parent
caa3ea33
No related branches found
No related tags found
1 merge request
!2
Add docker container
Pipeline
#8699
failed
2 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+25
-0
25 additions, 0 deletions
.gitlab-ci.yml
with
25 additions
and
0 deletions
.gitlab-ci.yml
+
25
−
0
View file @
449090c3
...
...
@@ -9,3 +9,28 @@ build-deb-packages:
artifacts
:
paths
:
-
fess.deb
build-docker
:
# Use the official docker image.
image
:
gitlab.jonasled.de/jonasled/buildx-docker:latest
retry
:
2
stage
:
build
services
:
-
docker:dind
before_script
:
-
docker context create build
-
docker buildx create build --use
-
docker run --rm --privileged docker/binfmt:66f9012c56a8316f9244ffd7622d7c21c1f6f28d
-
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
# Default branch leaves tagempty (= latest tag)
# All other branches are tagged with the escaped branch name (commit ref slug)
script
:
-
|
if [[ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]]; then
tag="latest"
else
tag="$CI_COMMIT_REF_SLUG"
fi
-
docker buildx build --platform linux/amd64 --push --tag "$CI_REGISTRY_IMAGE:${tag}" .
dependencies
:
-
build-deb-packages
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