Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scipopt-demo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Christian Salzmann-Jaeckel
scipopt-demo
Commits
cf076d33
Commit
cf076d33
authored
Jul 03, 2020
by
Christian Salzmann-Jaeckel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add .gitlab-ci.yml
parent
98695aff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
0 deletions
+46
-0
.gitlab-ci.yml
.gitlab-ci.yml
+46
-0
No files found.
.gitlab-ci.yml
0 → 100644
View file @
cf076d33
variables
:
IMAGE_TAG
:
$CI_REGISTRY_IMAGE/jupyter:$CI_COMMIT_REF_NAME
RELEASE_TAG
:
$CI_REGISTRY_IMAGE/jupyter:latest
BUILD_IMAGE
:
$CI_REGISTRY_IMAGE/docker-git
stages
:
-
build
-
release
.prepare_docker
:
before_script
:
&prepare_docker
|
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
build_docker_image
:
stage
:
build
image
:
$BUILD_IMAGE
before_script
:
-
*prepare_docker
script
:
-
docker build -t $IMAGE_TAG .
-
docker push $IMAGE_TAG
release_docker_image
:
stage
:
release
image
:
$BUILD_IMAGE
before_script
:
-
*prepare_docker
script
:
-
docker pull $IMAGE_TAG
-
docker tag $IMAGE_TAG $RELEASE_TAG
-
docker push $RELEASE_TAG
dependencies
:
-
build_docker_image
only
:
-
master
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment