Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
deployer
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
containers
deployer
Commits
1981ab57
Commit
1981ab57
authored
Apr 27, 2017
by
Vadym Gidulian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added CI config
parent
b2087556
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
0 deletions
+55
-0
.gitlab-ci.yml
.gitlab-ci.yml
+55
-0
No files found.
.gitlab-ci.yml
0 → 100644
View file @
1981ab57
services
:
-
docker:dind
variables
:
IMAGE_SNAPSHOT
:
$CI_REGISTRY_IMAGE:snapshot
IMAGE
:
$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
IMAGE_LATEST
:
$CI_REGISTRY_IMAGE:latest
stages
:
-
build
-
test
-
release
before_script
:
-
docker version
-
docker info
-
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
build
:
stage
:
build
script
:
-
docker build --pull -t $IMAGE_SNAPSHOT .
-
docker push $IMAGE_SNAPSHOT
tags
:
-
dind
test
:
stage
:
test
script
:
-
docker pull $IMAGE_SNAPSHOT
-
docker run $IMAGE_SNAPSHOT rsync --version
tags
:
-
dind
release
:
stage
:
release
script
:
-
docker pull $IMAGE_SNAPSHOT
-
docker tag $IMAGE_SNAPSHOT $IMAGE
-
docker push $IMAGE
tags
:
-
dind
except
:
-
master
release:latest
:
stage
:
release
script
:
-
docker pull $IMAGE_SNAPSHOT
-
docker tag $IMAGE_SNAPSHOT $IMAGE_LATEST
-
docker push $IMAGE_LATEST
tags
:
-
dind
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