-
Notifications
You must be signed in to change notification settings - Fork 3
/
.gitlab-ci.yml
30 lines (27 loc) · 1.6 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
stages:
- build
variables:
REGISTRY: hub.alterway.fr
NAMESPACE: library
before_script:
- if [[ "$CI_BUILD_REF_NAME" != master ]]; then NAMESPACE="$CI_BUILD_REF_NAME"; fi
build:
stage: build
script:
- docker build --pull -t $REGISTRY/$NAMESPACE/consul-template:0.11 0.11/ > /dev/null
- docker build --pull -t $REGISTRY/$NAMESPACE/consul-template:0.12 0.12/ > /dev/null
- docker build --pull -t $REGISTRY/$NAMESPACE/consul-template:0.11-dockerinside-1.10 0.11-dockerinside-1.10/ > /dev/null
- docker build --pull -t $REGISTRY/$NAMESPACE/consul-template:0.11-dockerinside-1.11 0.11-dockerinside-1.11/ > /dev/null
- docker build --pull -t $REGISTRY/$NAMESPACE/consul-template:0.12-dockerinside-1.10 0.12-dockerinside-1.10/ > /dev/null
- docker build --pull -t $REGISTRY/$NAMESPACE/consul-template:0.12-dockerinside-1.11 0.12-dockerinside-1.11/ > /dev/null
- docker build --pull -t $REGISTRY/$NAMESPACE/consul-template:0.12-swarm-mode 0.12-swarm-mode/ > /dev/null
- docker push $REGISTRY/$NAMESPACE/consul-template:0.11 > /dev/null
- docker push $REGISTRY/$NAMESPACE/consul-template:0.12 > /dev/null
- docker push $REGISTRY/$NAMESPACE/consul-template:0.11-dockerinside-1.10 > /dev/null
- docker push $REGISTRY/$NAMESPACE/consul-template:0.11-dockerinside-1.11 > /dev/null
- docker push $REGISTRY/$NAMESPACE/consul-template:0.12-dockerinside-1.10 > /dev/null
- docker push $REGISTRY/$NAMESPACE/consul-template:0.12-dockerinside-1.11 > /dev/null
- docker push $REGISTRY/$NAMESPACE/consul-template:0.12-swarm-mode > /dev/null
only:
- preprod
- master