forked from open-data-rescue/climate-data-rescue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
49 lines (45 loc) · 980 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
stages:
- build
- test
- deploy
variables:
GL_IMAGE: $CI_REGISTRY/${CI_PROJECT_PATH}:latest
build:
stage: build
image: docker:latest
services:
- docker:dind
script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
- docker build -t $GL_IMAGE .
- docker push $GL_IMAGE
only:
- master
# rspec:
# stage: test
# script:
# - docker-compose run app bundle update
# - docker-compose run app bundle exec rspec
# rubocop:
# stage: test
# script:
# - docker-compose run app bundle update
# - docker-compose run app bundle exec rubocop
#tag:
# stage: tag
# tag-smoke:
# stage: tag
# image: docker:latest
# services:
# - docker:dind
# script:
# - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
# - docker pull $GL_IMAGE
# - docker tag $GL_IMAGE $SMOKE_IMAGE
# - docker push $SMOKE_IMAGE
# only:
# - branches
# except:
# - master
#deploy:
# stage: deploy