forked from kyma-project/test-infra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
btp-manager-build.yaml
91 lines (91 loc) · 3.98 KB
/
btp-manager-build.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
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
88
89
90
91
templates:
- from: generic.tmpl
render:
- to: ../../prow/jobs/btp-manager/btp-manager-build.yaml
jobConfigs:
- repoName: "github.com/kyma-project/btp-manager"
jobs:
- jobConfig: # builds a docker image of the btp-manager tagged with the PR name
name: pull-btp-manager-build
annotations:
owner: "gopher"
description: "BTP Manager image build on PR"
always_run: true
args:
- "--name=btp-manager"
- "--config=/config/kaniko-build-config.yaml"
- "--context=."
- "--dockerfile=Dockerfile"
inheritedConfigs:
global:
- kaniko_buildpack
- jobConfig_presubmit
- jobConfig: # builds a docker image of the btp-manager tagged with the branch name
name: post-btp-manager-build
annotations:
owner: "gopher"
description: "BTP Manager image build on main"
labels:
preset-signify-prod-secret: "true"
always_run: true
args:
- "--name=btp-manager"
- "--context=."
- "--dockerfile=Dockerfile"
- "--config=/config/kaniko-build-config.yaml"
- '--tag={{`{{.Env \"PULL_BASE_REF\" }}`}}'
branches:
- ^\d+\.\d+\.\d+(?:-.*)?$
inheritedConfigs:
global:
- kaniko_buildpack
- jobConfig_postsubmit
- jobConfig: # builds an OCI image with btp-operator module
name: post-btp-manager-module-build
annotations:
owner: "gopher"
description: "BTP Manager template image build on main"
always_run: true
labels:
preset-sa-kyma-push-images: "true"
preset-kyma-btp-manager-bot-github-token: "true"
env:
KUSTOMIZE_VERSION: "v4.5.6"
MODULE_REGISTRY: "europe-docker.pkg.dev/kyma-project/prod/unsigned"
IMG_REGISTRY: "europe-docker.pkg.dev/kyma-project/prod"
securityContext:
privileged: false
command: "./scripts/release.sh"
args:
- "ci"
branches:
- ^\d+\.\d+\.\d+(?:-.*)?$
inheritedConfigs:
global:
- "image_buildpack-golang" # takes latest golang image
- "jobConfig_default"
- "jobConfig_postsubmit"
- jobConfig: # builds an OCI image with btp-operator module from the PR branch
name: pull-btp-manager-module-build
annotations:
owner: "gopher"
description: "BTP Manager template image build on PR"
always_run: true
optional: true
labels:
preset-sa-kyma-push-images: "true"
preset-kyma-btp-manager-bot-github-token: "true"
env:
KUSTOMIZE_VERSION: "v4.5.6"
MODULE_REGISTRY: "europe-docker.pkg.dev/kyma-project/dev/unsigned"
IMG_REGISTRY: "europe-docker.pkg.dev/kyma-project/dev"
securityContext:
privileged: false
command: "./scripts/create_module_image.sh"
args:
- "ci"
inheritedConfigs:
global:
- "jobConfig_default"
- "jobConfig_presubmit"
- "image_buildpack-golang" # takes latest golang image