forked from jenkins-x/jx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jenkins-x-bdd-tekton.yml
executable file
·82 lines (79 loc) · 4.1 KB
/
jenkins-x-bdd-tekton.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
buildPack: none
pipelineConfig:
pipelines:
pullRequest:
pipeline:
agent:
image: rawlingsj/executor:dev31
stages:
- name: ci
environment:
- name: GIT_COMMITTER_EMAIL
value: jenkins-x@googlegroups.com
- name: GIT_AUTHOR_EMAIL
value: jenkins-x@googlegroups.com
- name: GIT_AUTHOR_NAME
value: jenkins-x-bot
- name: GIT_COMMITTER_NAME
value: jenkins-x-bot
- name: BASE_WORKSPACE
value: /workspace/source
steps:
- name: build-binary
image: docker.io/golang:1.11.5
command: make
args: ['linux']
env:
- name: GOPATH
value: /workspace/go
- name: GOPROXY
value: http://jx-app-athens-athens-proxy
resources:
limits:
cpu: 4
memory: 6144Mi
requests:
cpu: 3
memory: 3072Mi
- name: validate-binary
image: docker.io/golang:1.11.5
command: "./build/linux/jx"
args: ['--help']
env:
- name: GOPATH
value: /workspace/go
- 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-tekton.sh
env:
- name: HOME
value: /workspace
- name: GOPATH
value: /workspace/go
- name: PATH
value: "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/google-cloud-sdk/bin:/opt/google/chrome:/usr/local/go/bin:/usr/local/glide:/usr/local/dep:/usr/local/:/home/jenkins/go/bin:/workspace/go/bin"
- name: GOPROXY
value: http://jx-app-athens-athens-proxy
resources:
limits:
cpu: 4
memory: 6144Mi
requests:
cpu: 3
memory: 3072Mi