forked from cert-manager/cert-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
42 lines (36 loc) · 1006 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
image: eu.gcr.io/jetstack-build-infra-images/bazelbuild:v20181107-8aac55d-0.18.0
variables:
DOCKER_DRIVER: overlay
services:
- docker:1.12-dind
before_script:
- curl -L "https://get.docker.com/builds/Linux/x86_64/docker-1.9.1.tgz" | tar -C /usr/bin -xvzf- --strip-components=3 usr/local/bin/docker
- export DOCKER_HOST=${DOCKER_PORT}
- docker info > /dev/null
build:
tags:
- docker
script:
- make verify images
except:
- master
- tags
master_push:
tags:
- docker
script:
- mkdir -p ~/.docker && echo "${DOCKER_AUTH_CONFIG}" > ~/.docker/config.json && chmod 600 ~/.docker/config.json
- make verify
- make images_push APP_VERSION="${CI_BUILD_REF_SLUG}-${CI_PIPELINE_ID}"
- make images_push APP_VERSION="canary"
only:
- master
release_push:
tags:
- docker
script:
- mkdir -p ~/.docker && echo "${DOCKER_AUTH_CONFIG}" > ~/.docker/config.json && chmod 600 ~/.docker/config.json
- make verify
- make images_push APP_VERSION="${CI_COMMIT_TAG}"
only:
- tags