Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
docker
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
project-templates
docker
Commits
4a2abb90
Commit
4a2abb90
authored
Jan 21, 2018
by
Vadym Gidulian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed snapshot image tag format and releasing of `latest` workflow
parent
2b8cb521
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
.gitlab-ci.yml
.gitlab-ci.yml
+8
-3
No files found.
.gitlab-ci.yml
View file @
4a2abb90
...
...
@@ -2,7 +2,7 @@ services:
-
docker:dind
variables
:
IMAGE_SNAPSHOT
:
$CI_REGISTRY_IMAGE:$CI_COMMIT_
REF_NAME-snapshot
IMAGE_SNAPSHOT
:
$CI_REGISTRY_IMAGE:$CI_COMMIT_
SHA
IMAGE
:
$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
IMAGE_LATEST
:
$CI_REGISTRY_IMAGE:latest
...
...
@@ -26,6 +26,8 @@ build:
test
:
stage
:
test
variables
:
GIT_STRATEGY
:
none
script
:
-
docker pull $IMAGE_SNAPSHOT
-
docker run $IMAGE_SNAPSHOT echo "Running tests..."
...
...
@@ -34,21 +36,24 @@ test:
release
:
stage
:
release
variables
:
GIT_STRATEGY
:
none
script
:
-
docker pull $IMAGE_SNAPSHOT
-
docker tag $IMAGE_SNAPSHOT $IMAGE
-
docker push $IMAGE
tags
:
-
dind
except
:
-
master
release:latest
:
stage
:
release
variables
:
GIT_STRATEGY
:
none
script
:
-
docker pull $IMAGE_SNAPSHOT
-
docker tag $IMAGE_SNAPSHOT $IMAGE_LATEST
-
docker push $IMAGE_LATEST
when
:
manual
tags
:
-
dind
only
:
...
...
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