forked from zalando-incubator/es-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
delivery.yaml
62 lines (62 loc) · 1.7 KB
/
delivery.yaml
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
version: "2017-09-20"
pipeline:
- id: build
overlay: ci/golang
cache:
paths:
- /go/pkg/mod # pkg cache for Go modules
- ~/.cache/go-build # Go build cache
type: script
commands:
- desc: test
cmd: |
make test
- desc: build
cmd: |
make build.docker
- desc: push
cmd: |
if [[ $CDP_TARGET_BRANCH == master && ! $CDP_PULL_REQUEST_NUMBER ]]; then
IMAGE=registry-write.opensource.zalan.do/poirot/es-operator
VERSION=$(git describe --tags --always --dirty)
else
IMAGE=registry-write.opensource.zalan.do/poirot/es-operator-test
VERSION=$CDP_BUILD_VERSION
fi
IMAGE=$IMAGE VERSION=$VERSION make build.push
- id: e2e
type: process
desc: "E2E Tests"
target: search-test
process: microservice_standard_test
debug_mode: true
when:
event: pull_request
config:
apply_manifests:
env:
- name: APPLICATION
value: es-operator
- name: DEPLOYMENT_PATH
value: deploy/e2e
- name: IMAGE
value: "registry.opensource.zalan.do/poirot/es-operator-test:#{CDP_BUILD_VERSION}"
- name: OPERATOR_ID
value: "#{CDP_BUILD_VERSION}"
end2end_tests:
metadata:
name: e2e
spec:
serviceAccountName: es-operator
restartPolicy: Never
containers:
- name: e2e
image: "registry.opensource.zalan.do/poirot/es-operator-test-e2e:#{CDP_BUILD_VERSION}"
command: ["/e2e"]
env:
- name: "OPERATOR_ID"
value: "#{CDP_BUILD_VERSION}"
- name: "E2E_NAMESPACE"
valueFrom:
fieldRef:
fieldPath: metadata.namespace