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
N
NIFTy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
13
Issues
13
List
Boards
Labels
Service Desk
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ift
NIFTy
Commits
d081cc66
Commit
d081cc66
authored
Jan 19, 2017
by
Jait Dixit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change release stage in ci to trigger only on master and tags
parent
f722e14f
Pipeline
#9512
canceled with stage
in 7 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
4 deletions
+21
-4
.gitlab-ci.yml
.gitlab-ci.yml
+21
-4
No files found.
.gitlab-ci.yml
View file @
d081cc66
...
...
@@ -6,7 +6,8 @@ stages:
variables
:
DOCKER_DRIVER
:
overlay
RELEASE_IMAGE
:
iftmpa/nifty:ci_test
RELEASE_IMAGE_MASTER
:
iftmpa/nifty:dev
RELEASE_IMAGE_MASTER
:
iftmpa/nifty:$CI_BUILD_TAG
before_script
:
-
apt-get update
...
...
@@ -65,7 +66,7 @@ test_mpi_fftw_hdf5:
-
python setup.py build_ext --inplace
-
nosetests -vv
release_image
:
release_image
_master
:
image
:
docker:latest
stage
:
release
before_script
:
...
...
@@ -74,5 +75,21 @@ release_image:
-
docker:dind
script
:
-
docker login -u $DOCKER_HUB_USERNAME -p $DOCKER_HUB_PASSWORD
-
docker build -t $RELEASE_IMAGE .
-
docker push $RELEASE_IMAGE
-
docker build -t $RELEASE_IMAGE_MASTER .
-
docker push $RELEASE_IMAGE_MASTER
only
:
-
master
release_image_tagged
:
image
:
docker:latest
stage
:
release
before_script
:
-
pwd
services
:
-
docker:dind
script
:
-
docker login -u $DOCKER_HUB_USERNAME -p $DOCKER_HUB_PASSWORD
-
docker build -t $RELEASE_IMAGE_TAGGED .
-
docker push $RELEASE_IMAGE_TAGGED
only
:
-
tags
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