This repository has been archived by the owner on Sep 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
/
jenkins-x.yml
executable file
·56 lines (55 loc) · 1.83 KB
/
jenkins-x.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
buildPack: none
noReleasePrepare: true
pipelineConfig:
pipelines:
release:
pipeline:
agent:
image: mutadev/muta-build-env:v0.3.0
stages:
- name: release
environment:
- name: BASE_WORKSPACE
value: /workspace/source
options:
containerOptions:
volumeMounts:
- name: jenkins-docker-cfg
mountPath: /kaniko/.docker
resources:
limits:
cpu: 4
memory: 8Gi
requests:
cpu: 2
memory: 8Gi
volumes:
- name: jenkins-docker-cfg
secret:
secretName: jenkins-docker-cfg
items:
- key: config.json
path: config.json
steps:
- name: build-release
image: mutadev/muta-build-env:v0.3.0
env:
- name: OPENSSL_STATIC
value: "1"
- name: OPENSSL_LIB_DIR
value: /usr/lib/x86_64-linux-gnu
- name: OPENSSL_INCLUDE_DIR
value: /usr/include/openssl
command: cargo
args:
- build
- --release
- --example
- muta-chain
- name: push-image
image: gcr.io/kaniko-project/executor:9912ccbf8d22bbafbf971124600fbb0b13b9cbd6
command: /kaniko/executor
args:
- --dockerfile=/workspace/source/devtools/docker-build/Dockerfile
- --destination=mutadev/${REPO_NAME}:latest
- --context=/workspace/source