Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5bb6f56

Browse filesBrowse files
committed
Add gitlab-ci.yml
1 parent 74f6595 commit 5bb6f56
Copy full SHA for 5bb6f56

File tree

Expand file treeCollapse file tree

1 file changed

+38
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+38
-0
lines changed

‎.gitlab-ci.yml

Copy file name to clipboard
+38Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
image: docker:1.11.2
2+
3+
stages:
4+
- build
5+
- test
6+
- prerelease
7+
- release
8+
9+
before_script:
10+
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
11+
12+
build:
13+
stage: build
14+
script:
15+
- docker build -t $CI_REGISTRY_IMAGE:CI_BUILD_REF_NAME .
16+
17+
prerelease:
18+
stage: prerelease
19+
script:
20+
- docker push $CI_REGISTRY_IMAGE:CI_BUILD_REF_NAME
21+
22+
release-version:
23+
stage: release
24+
script:
25+
- docker pull $CI_REGISTRY_IMAGE:CI_BUILD_REF_NAME
26+
- docker tag $CI_REGISTRY_IMAGE:CI_BUILD_REF_NAME $CI_REGISTRY_IMAGE:$(cat VERSION)
27+
- docker push $CI_REGISTRY_IMAGE:$(cat VERSION)
28+
only:
29+
- master
30+
31+
release-latest:
32+
stage: release
33+
script:
34+
- docker pull $CI_REGISTRY_IMAGE:CI_BUILD_REF_NAME
35+
- docker tag $CI_REGISTRY_IMAGE:CI_BUILD_REF_NAME $CI_REGISTRY_IMAGE
36+
- docker push $CI_REGISTRY_IMAGE
37+
only:
38+
- master

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.