@@ -48,18 +48,13 @@ pipeline:
48
48
- make -s fmt generate manifests
49
49
- git diff --exit-code
50
50
51
- build-chart :
52
- group : build
53
- image : quay.io/presslabs/bfc:0.4
54
- commands :
55
- - make chart
56
-
57
51
publish-images :
58
52
group : publish
59
53
image : quay.io/presslabs/bfc:latest
60
54
environment :
61
55
DOCKER_HOST : tcp://docker:2375
62
56
DOCKER_USER : presslabs+drone
57
+ APP_VERSION : ${DRONE_TAG:-${DRONE_BRANCH/master/latest}}
63
58
secrets :
64
59
- source : QUAY_TOKEN
65
60
target : DOCKER_PASSWORD
@@ -71,6 +66,14 @@ pipeline:
71
66
- push
72
67
- tag
73
68
69
+ build-chart :
70
+ group : build
71
+ image : quay.io/presslabs/bfc:0.4
72
+ environment :
73
+ APP_VERSION : ${DRONE_TAG:-${DRONE_BRANCH/master/latest}}
74
+ commands :
75
+ - make chart
76
+
74
77
publish-helm-chart :
75
78
image : quay.io/presslabs/kluster-toolbox
76
79
pull : true
@@ -138,18 +141,18 @@ pipeline:
138
141
secrets :
139
142
- GOOGLE_CREDENTIALS
140
143
environment :
141
- - APP_VERSION=${DRONE_TAG}
144
+ - APP_VERSION=${DRONE_TAG:-${DRONE_BRANCH/master/latest} }
142
145
- KUBECONFIG=/root/go/.kube/config
143
146
- HELM_HOME=/root/go/.helm/
144
147
- CLUSTER_NAME=mysql-op-x${DRONE_BUILD_NUMBER}
145
148
- BACKUP_BUCKET_NAME=pl-test-mysql-operator
146
149
commands :
147
150
- setup-credentials-helper.sh
148
151
- go test ./test/e2e -v --kubernetes-config /root/go/.kube/config --kubernetes-context gke_testing-reactor_europe-west3-b_$CLUSTER_NAME
149
- --operator-image quay.io/presslabs/mysql-operator:${DRONE_BRANCH/master/latest}
150
- --sidecar-mysql57-image quay.io/presslabs/mysql-operator-sidecar-mysql57:${DRONE_BRANCH/master/latest}
151
- --sidecar-mysql8-image quay.io/presslabs/mysql-operator-sidecar-mysql8:${DRONE_BRANCH/master/latest}
152
- --orchestrator-image quay.io/presslabs/mysql-operator-orchestrator:${DRONE_BRANCH/master/latest}
152
+ --operator-image quay.io/presslabs/mysql-operator:$APP_VERSION
153
+ --sidecar-mysql57-image quay.io/presslabs/mysql-operator-sidecar-mysql57:$APP_VERSION
154
+ --sidecar-mysql8-image quay.io/presslabs/mysql-operator-sidecar-mysql8:$APP_VERSION
155
+ --orchestrator-image quay.io/presslabs/mysql-operator-orchestrator:$APP_VERSION
153
156
--pod-wait-timeout 150
154
157
--dump-logs-on-failure=false
155
158
-timeout 40m
0 commit comments