forked from alterway/docker-keepalived
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
22 lines (19 loc) · 800 Bytes
/
.gitlab-ci.yml
File metadata and controls
22 lines (19 loc) · 800 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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/keepalived:1.2 1.2/ > /dev/null
- docker build --pull -t $REGISTRY/$NAMESPACE/keepalived:1.2-dockerinside-1.10 1.2-dockerinside-1.10/ > /dev/null
- docker build --pull -t $REGISTRY/$NAMESPACE/keepalived:1.2-dockerinside-1.11 1.2-dockerinside-1.11/ > /dev/null
- docker push $REGISTRY/$NAMESPACE/keepalived:1.2 > /dev/null
- docker push $REGISTRY/$NAMESPACE/keepalived:1.2-dockerinside-1.10 > /dev/null
- docker push $REGISTRY/$NAMESPACE/keepalived:1.2-dockerinside-1.11 > /dev/null
only:
- preprod
- master