Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Generic Training Dataset
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
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
Arkindex
Workers
Generic Training Dataset
Merge requests
!1
"README.md" did not exist on "a9b2031a133320d8753c38daf6f4cbc721b8dfff"
Bootstrap repo
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Bootstrap repo
bootstrap
into
main
Overview
0
Commits
3
Pipelines
1
Changes
20
Merged
Yoann Schneider
requested to merge
bootstrap
into
main
1 year ago
Overview
0
Commits
3
Pipelines
1
Changes
20
Expand
Closes
#1 (closed)
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
db20374d
3 commits,
1 year ago
20 files
+
354
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
20
Search (e.g. *.vue) (Ctrl+P)
ci/build.sh
0 → 100755
+
32
−
0
Options
#!/bin/sh -e
# Build the tasks Docker image.
# Requires CI_PROJECT_DIR and CI_REGISTRY_IMAGE to be set.
# VERSION defaults to latest.
# Will automatically login to a registry if CI_REGISTRY, CI_REGISTRY_USER and CI_REGISTRY_PASSWORD are set.
# Will only push an image if $CI_REGISTRY is set.
if
[
-z
"
$VERSION
"
]
;
then
VERSION
=
${
CI_COMMIT_TAG
:-
latest
}
fi
if
[
-z
"
$VERSION
"
-o
-z
"
$CI_PROJECT_DIR
"
-o
-z
"
$CI_REGISTRY_IMAGE
"
]
;
then
echo
Missing environment variables
exit
1
fi
IMAGE_TAG
=
"
$CI_REGISTRY_IMAGE
:
$VERSION
"
cd
$CI_PROJECT_DIR
docker build
-f
Dockerfile
.
-t
"
$IMAGE_TAG
"
# Publish the image on the main branch or on a tag
if
[
"
$CI_COMMIT_REF_NAME
"
=
"main"
-o
-n
"
$CI_COMMIT_TAG
"
]
;
then
if
[
-n
"
$CI_REGISTRY
"
-a
-n
"
$CI_REGISTRY_USER
"
-a
-n
"
$CI_REGISTRY_PASSWORD
"
]
;
then
echo
$CI_REGISTRY_PASSWORD
| docker login
-u
$CI_REGISTRY_USER
--password-stdin
$CI_REGISTRY
docker push
$IMAGE_TAG
else
echo
"Missing environment variables to log in to the container registry…"
fi
else
echo
"The build was not published to the repository registry (only for main branch or tags)…"
fi
Loading