forked from TimeBye/kubeadm-ha
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
107 lines (105 loc) · 3.32 KB
/
.travis.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
language: python
services:
- docker
install: true
jobs:
include:
- stage: build
script:
- |
cat << EOF >config.yaml
from:
registry: https://registry-1.docker.io
to:
registry: https://registry.aliyuncs.com
names:
- library/nginx:1.19-alpine
- library/haproxy:2.3-alpine
- library/traefik:2.3.5
- openresty/openresty:1.19.3.1-alpine
- envoyproxy/envoy:v1.16.2
- osixia/keepalived:2.0.20
- calico/typha
- calico/cni
- calico/node
- calico/kube-controllers
- calico/pod2daemon-flexvol
- calico/ctl
- jettech/kube-webhook-certgen
- kubernetesui/dashboard
- kubernetesui/metrics-scraper
replace:
- old: openresty/
new: kubeadm-ha/openresty_
- old: envoyproxy/
new: kubeadm-ha/envoyproxy_
- old: osixia/
new: kubeadm-ha/osixia_
- old: calico/
new: kubeadm-ha/calico_
- old: jettech/
new: kubeadm-ha/jettech_
- old: kubernetesui/
new: kubeadm-ha/kubernetesui_
- old: library
new: kubeadm-ha
rules:
- ^[Vv]?\d+\.\d+(\.\d+)?(-\d+)?$
EOF
docker run -v $PWD/config.yaml:/config.yaml \
setzero/images-sync:0.3.1 \
/bin/sh -c "TO_USERNAME=$TO_USERNAME TO_PASSWORD=$TO_PASSWORD sync-images --config config.yaml"
- stage: build
script:
- |
cat << EOF >config.yaml
from:
registry: https://quay.io
to:
registry: https://registry.aliyuncs.com
names:
- coreos/flannel
- jetstack/cert-manager-cainjector
- jetstack/cert-manager-webhook
- jetstack/cert-manager-controller
replace:
- old: coreos/
new: kubeadm-ha/coreos_
- old: jetstack/
new: kubeadm-ha/jetstack_
rules:
- ^[Vv]?\d+\.\d+(\.\d+)?(-\d+)?$
EOF
docker run -v $PWD/config.yaml:/config.yaml \
setzero/images-sync:0.3.1 \
/bin/sh -c "TO_USERNAME=$TO_USERNAME TO_PASSWORD=$TO_PASSWORD sync-images --config config.yaml"
- stage: build
script:
- |
cat << EOF >config.yaml
from:
registry: https://k8s.gcr.io
to:
registry: https://registry.aliyuncs.com
names:
- kube-apiserver
- kube-controller-manager
- kube-scheduler
- kube-proxy
- pause
- etcd
- coredns
- ingress-nginx/controller
- metrics-server/metrics-server
replace:
- old: ingress-nginx/
new: kubeadm-ha/ingress-nginx_
- old: metrics-server/
new: kubeadm-ha/metrics-server_
- new: kubeadm-ha
rules:
- ^[Vv]?\d+\.\d+(\.\d+)?(-\d+)?$
EOF
docker run -v $PWD/config.yaml:/config.yaml \
setzero/images-sync:0.3.1 \
/bin/sh -c "TO_USERNAME=$TO_USERNAME TO_PASSWORD=$TO_PASSWORD sync-images --config config.yaml"