-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
33 lines (26 loc) · 868 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
image: docker:git
services:
- docker:dind
before_script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.com
build_alpine:
script:
- docker build -t registry.gitlab.com/gbraad/kubernetes-client:alpine ./alpine
- docker push registry.gitlab.com/gbraad/kubernetes-client:alpine
only:
- master
build_fedora:
script:
- docker build -t registry.gitlab.com/gbraad/kubernetes-client:fedora ./fedora
- docker push registry.gitlab.com/gbraad/kubernetes-client:fedora
only:
- master
build_static:
script:
- cd scratch
- wget http://storage.googleapis.com/kubernetes-release/release/v1.3.4/bin/linux/amd64/kubectl
- chmod +x kubectl
- docker build -t registry.gitlab.com/gbraad/kubernetes-client:static .
- docker push registry.gitlab.com/gbraad/kubernetes-client:static
only:
- master