-
Notifications
You must be signed in to change notification settings - Fork 1
/
build-builder-image-cfg.yaml
53 lines (47 loc) · 2.13 KB
/
build-builder-image-cfg.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
# The type will be used by the application to generate the resources for the selected provider: konflux, tekton
provider: konflux
domain: build
namespace: user-ns1
repository:
url: https://github.com/ch007m/new-quarkus-app-1
dockerfilePath: src/main/docker/Dockerfile.jvm
# To generate or not the Application and/or Component CR
application:
name: my-quarkus
enable: true
component:
name: quarkus-1
enable: true
job:
# One of the supported resources: PipelineRun, Pipeline
resourceType: PipelineRun
name: image-builder
description: PipelineRun building the buildpack builder image using pack CLI
# Remark : As the Pipelin(run) resource of konflux already defines mandatory steps to perform actions as listed here - it is then not needed
# to detail them here except the actions that you want to include part of the build process
# The actions to be executed should match/map the name ofg the Task declared in an OCI Bundle or Git repository url
# Examples:
# - pack: to build an image using the Pack CLI
# - build: to build an application using a builder image
# - pack-builder: to create a builder image using pack CLI
# - stack: to create a base stack image build or run
# - meta/composite: to package the buildpacks of a "meta/composite" buildpack project
# - buildpack: to package a "buildpack" project
# - extension: to package an "extension" project
# TODO: List of the examples should be reviewed !
actions:
- name: pack-builder # TODO: To be reviewed as the name of the task is different about the "build-container"
ref: bundle://quay.io/ch007m/tekton-bundle:latest@sha256:42f0acaefdfbb345fb76c34910f4f7f358908602d3e8f83e4616218685e34b25
params:
- PACK_SOURCE_DIR: "$(params.source-dir)"
- PACK_CLI_IMAGE: "$(params.imageUrl)"
- PACK_CLI_IMAGE_VERSION: "$(params.imageTag)"
- BUILDER_IMAGE_NAME: "$(params.output-image)"
- PACK_BUILDER_TOML: "ubi-builder.toml"
- PACK_CMD_FLAGS:
- "$(params.packCmdBuilderFlags)"
workspaces:
- name: source-dir
workspace: workspace
- name: pack-workspace
workspace: workspace