-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
30 lines (27 loc) · 845 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
stages:
- build
- release
static-analysis:
stage: build
image: coala/base:0.8
script:
- coala-ci
build:
stage: build
image: docker:1.12
services:
- docker:dind
script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.com
- docker build -t registry.gitlab.com/underyx/dotfiles:$CI_BUILD_REF_NAME .
- docker push registry.gitlab.com/underyx/dotfiles:$CI_BUILD_REF_NAME
release:
stage: release
image: docker:1.12
services:
- docker:dind
script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.com
- docker pull registry.gitlab.com/underyx/dotfiles:$CI_BUILD_REF_NAME
- docker tag registry.gitlab.com/underyx/dotfiles:$CI_BUILD_REF_NAME registry.gitlab.com/underyx/dotfiles:latest
- docker push registry.gitlab.com/underyx/dotfiles:latest