Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
build
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
storm2
build
Commits
ba244aaa
Commit
ba244aaa
authored
5 years ago
by
Andrea Ceccanti
Browse files
Options
Downloads
Patches
Plain Diff
image build refactoring
parent
e1046d0c
Branches
issue-17
No related tags found
No related merge requests found
Pipeline
#24167
canceled
5 years ago
Stage: build
Stage: dockerhub
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+15
-3
15 additions, 3 deletions
.gitlab-ci.yml
with
15 additions
and
3 deletions
.gitlab-ci.yml
+
15
−
3
View file @
ba244aaa
...
...
@@ -6,6 +6,9 @@ before_script:
-
apk add git
-
git clone https://baltig.infn.it/mw-devel/helper-scripts.git helper-scripts
-
cp helper-scripts/scripts/* /usr/local/bin
-
docker login -u gitlab-ci-token -p ${CI_JOB_TOKEN} ${CI_REGISTRY}
-
export DOCKER_REGISTRY_HOST=${CI_REGISTRY}
-
export DOCKER_REGISTRY_NAMESPACE=${CI_PROJECT_PATH}
stages
:
-
build
...
...
@@ -14,6 +17,15 @@ stages:
build
:
stage
:
build
script
:
-
export DOCKER_REGISTRY_HOST=${CI_REGISTRY}
-
export DOCKER_REGISTRY_NAMESPACE=${CI_PROJECT_PATH}
-
cd docker && S2_IMAGES=base sh push-images.sh
-
env | sort
-
cd docker && sh build-images.sh && sh push-images.sh
push-to-dockerhub
:
stage
:
dockerhub
script
:
-
export DOCKER_PUSH_TO_DOCKERHUB=y
-
env | sort
-
cd docker && sh pull-images.sh && unset DOCKER_REGISTRY_HOST && sh push-images.sh
only
:
-
master
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