Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eic_container
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
Container registry
Model registry
Operate
Environments
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
containers
eic_container
Commits
9f227b79
Commit
9f227b79
authored
2 years ago
by
Wouter Deconinck
Browse files
Options
Downloads
Patches
Plain Diff
feat: manual dind default to master
parent
d5aab525
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
+30
-31
30 additions, 31 deletions
.gitlab-ci.yml
with
30 additions
and
31 deletions
.gitlab-ci.yml
+
30
−
31
View file @
9f227b79
...
@@ -146,6 +146,22 @@ version:
...
@@ -146,6 +146,22 @@ version:
done
done
-
docker buildx create --name builder --driver docker-container --bootstrap --use
-
docker buildx create --name builder --driver docker-container --bootstrap --use
.dind
:
stage
:
dind
extends
:
.build
variables
:
-
BUILD_IMAGE
:
dind
script
:
-
docker buildx build --push
--tag ${CI_REGISTRY}/${CI_PROJECT_PATH}/${BUILD_IMAGE}:${INTERNAL_TAG}
${EXPORT_TAG:+
${CI_PUSH:+--tag ${CI_REGISTRY}/${CI_PROJECT_PATH}/${BUILD_IMAGE}:${EXPORT_TAG}}
${DH_PUSH:+--tag ${DH_REGISTRY}/${DH_REGISTRY_USER}/${BUILD_IMAGE}:${EXPORT_TAG}}
${GH_PUSH:+--tag ${GH_REGISTRY}/${GH_REGISTRY_USER}/${BUILD_IMAGE}:${EXPORT_TAG}}
}
--file containers/dind/Dockerfile
containers/dind
## Images:
## Images:
## debian_testing_base --> jug_dev --> jug_xl
## debian_testing_base --> jug_dev --> jug_xl
## ---------------> jug_sim
## ---------------> jug_sim
...
@@ -158,39 +174,22 @@ version:
...
@@ -158,39 +174,22 @@ version:
## Docker-in-docker image
## Docker-in-docker image
dind-build
:
dind-build
:
parallel
:
extends
:
.dind
matrix
:
variables
:
-
BUILD_IMAGE
:
dind
-
EXPORT_TAG
:
extends
:
.build
stage
:
dind
needs
:
-
version
script
:
-
docker buildx build --push
--tag ${CI_REGISTRY}/${CI_PROJECT_PATH}/${BUILD_IMAGE}:${INTERNAL_TAG}
--file containers/dind/Dockerfile
containers/dind
dind-publish
:
dind-publish
:
image
:
${CI_REGISTRY}/${CI_PROJECT_PATH}/${BUILD_IMAGE}:${INTERNAL_TAG}
image
:
${CI_REGISTRY}/${CI_PROJECT_PATH}/dind:${INTERNAL_TAG}
parallel
:
extends
:
.dind
matrix
:
variables
:
-
BUILD_IMAGE
:
dind
-
EXPORT_TAG
:
${EXPORT_TAG}
extends
:
.build
stage
:
dind
dind-default
:
needs
:
image
:
${CI_REGISTRY}/${CI_PROJECT_PATH}/dind:${INTERNAL_TAG}
-
version
extends
:
.dind
-
dind-build
when
:
manual
script
:
variables
:
-
docker buildx build --push
-
EXPORT_TAG
:
master
--tag ${CI_REGISTRY}/${CI_PROJECT_PATH}/${BUILD_IMAGE}:${INTERNAL_TAG}
${EXPORT_TAG:+
${CI_PUSH:+--tag ${CI_REGISTRY}/${CI_PROJECT_PATH}/${BUILD_IMAGE}:${EXPORT_TAG}}
${DH_PUSH:+--tag ${DH_REGISTRY}/${DH_REGISTRY_USER}/${BUILD_IMAGE}:${EXPORT_TAG}}
${GH_PUSH:+--tag ${GH_REGISTRY}/${GH_REGISTRY_USER}/${BUILD_IMAGE}:${EXPORT_TAG}}
}
--file containers/dind/Dockerfile
containers/dind
base
:
base
:
parallel
:
parallel
:
...
...
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