-
Notifications
You must be signed in to change notification settings - Fork 4
/
.gitlab-ci.yml
76 lines (70 loc) · 2.01 KB
/
.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
unit-test:
stage: test
image: golang:1.8
before_script:
- mkdir -p /go/src/github.com/coreos-inc/apostille
- cp -a $CI_PROJECT_DIR/* /go/src/github.com/coreos-inc/apostille
- cd /go/src/github.com/coreos-inc/apostille
script:
- make test
allow_failure: false
mysql-test:
stage: test
image: docker:git
before_script:
- apk update
- apk add bash py-pip
- pip install docker-compose
- mkdir -p /go/src/github.com/coreos-inc/apostille
- cp -a $CI_PROJECT_DIR/* /go/src/github.com/coreos-inc/apostille
- cd /go/src/github.com/coreos-inc/apostille
script:
- bin/integration.sh mysql
variables:
DOCKER_DRIVER: overlay
DOCKER_HOST: tcp://docker-host.gitlab-runner.svc.cluster.local:2375
tags:
- kubernetes
allow_failure: false
postgres-test:
stage: test
image: docker:git
before_script:
- apk update
- apk add bash py-pip
- pip install docker-compose
- mkdir -p /go/src/github.com/coreos-inc/apostille
- cp -a $CI_PROJECT_DIR/* /go/src/github.com/coreos-inc/apostille
- cd /go/src/github.com/coreos-inc/apostille
script:
- bin/integration.sh postgresql
services:
- docker:dind
tags:
- kubernetes
variables:
DOCKER_DRIVER: overlay
DOCKER_HOST: tcp://docker-host.gitlab-runner.svc.cluster.local:2375
allow_failure: false
#container-build:
# only:
# - master
# before_script:
# - docker login -u $DOCKER_USER -p $DOCKER_PASS quay.io
# image: docker:git
# script:
# - docker build -t quay.io/quay/apostille:${CI_COMMIT_REF_SLUG} -f server.Dockerfile .
# - docker build -t quay.io/quay/apostille-signer:${CI_COMMIT_REF_SLUG} -f signer.Dockerfile .
# - docker push quay.io/quay/apostille:${CI_COMMIT_REF_SLUG}
# - docker push quay.io/quay/apostille-signer:${CI_COMMIT_REF_SLUG}
# stage: docker_build
# tags:
# - kubernetes
# variables:
# DOCKER_DRIVER: overlay
# DOCKER_HOST: tcp://docker-host.gitlab-runner.svc.cluster.local:2375
stages:
- test
- docker_build
variables:
FAILFASTCI_NAMESPACE: quay