forked from jenkins-x/jx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jenkins-x-bdd.yml
executable file
·87 lines (79 loc) · 4.09 KB
/
jenkins-x-bdd.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
buildPack: none
pipelineConfig:
pipelines:
pullRequest:
pipeline:
agent:
image: rawlingsj/executor:dev31
stages:
- name: ci
environment:
- name: GIT_COMMITTER_EMAIL
value: [email protected]
- name: GIT_AUTHOR_EMAIL
value: [email protected]
- name: GIT_AUTHOR_NAME
value: jenkins-x-bot
- name: GIT_COMMITTER_NAME
value: jenkins-x-bot
- name: BASE_WORKSPACE
value: /workspace/source
- name: GOPROXY
value: http://jenkins-x-athens-proxy:80
- name: PARALLEL_BUILDS
value: "2"
# Build a binary that can emit coverage
- name: COVERED_BINARY
value: "true"
# Enable coverage reporting during BDD test run
- name: ENABLE_COVERAGE
value: "true"
- name: CODECOV_NAME
value: e2e
options:
containerOptions:
resources:
limits:
cpu: 4
memory: 6144Mi
requests:
cpu: 3
memory: 3072Mi
env:
- name: CODECOV_TOKEN
valueFrom:
secretKeyRef:
key: token
name: codecov-token
steps:
- name: build-binary
image: docker.io/golang:1.11.5
command: make
args: ['linux']
- name: validate-binary
image: docker.io/golang:1.11.5
command: "./build/linux/jx"
args: ['help']
- name: build-and-push-image
image: rawlingsj/executor:dev40
command: /kaniko/executor
args: ['--dockerfile=/workspace/source/Dockerfile','--destination=docker.io/jenkinsxio/jx:${inputs.params.version}','--context=/workspace/source','--cache-repo=jenkins-x-docker-registry.jx.svc.cluster.local:5000/','--cache=true','--cache-dir=/workspace','--skip-tls-verify-registry=jenkins-x-docker-registry.jx.svc.cluster.local:5000']
- name: build-and-push-nodejs
image: rawlingsj/executor:dev40
command: /kaniko/executor
args: ['--dockerfile=/workspace/source/Dockerfile.builder-nodejs','--destination=docker.io/jenkinsxio/builder-nodejs:${inputs.params.version}','--context=/workspace/source','--cache-repo=jenkins-x-docker-registry.jx.svc.cluster.local:5000/','--cache=true','--cache-dir=/workspace','--skip-tls-verify-registry=jenkins-x-docker-registry.jx.svc.cluster.local:5000']
- name: build-and-push-maven
image: rawlingsj/executor:dev40
command: /kaniko/executor
args: ['--dockerfile=/workspace/source/Dockerfile.builder-maven','--destination=docker.io/jenkinsxio/builder-maven:${inputs.params.version}','--context=/workspace/source','--cache-repo=jenkins-x-docker-registry.jx.svc.cluster.local:5000/','--cache=true','--cache-dir=/workspace','--skip-tls-verify-registry=jenkins-x-docker-registry.jx.svc.cluster.local:5000']
- name: build-and-push-go
image: rawlingsj/executor:dev40
command: /kaniko/executor
args: ['--dockerfile=/workspace/source/Dockerfile.builder-go','--destination=docker.io/jenkinsxio/builder-go:${inputs.params.version}','--context=/workspace/source','--cache-repo=jenkins-x-docker-registry.jx.svc.cluster.local:5000/','--cache=true','--cache-dir=/workspace','--skip-tls-verify-registry=jenkins-x-docker-registry.jx.svc.cluster.local:5000']
- name: preview
image: gcr.io/jenkinsxio/builder-go:0.1.332
command: ./jx/scripts/ci.sh
- name: codecov-upload
image: gcr.io/jenkinsxio/builder-go:0.1.332
command: make
args: ['codecov-upload']