Skip to content

Commit

Permalink
pipelines: add source image build
Browse files Browse the repository at this point in the history
FOSS legally requires distribution of source. Adding this task should
generate an image that we can distribute automagically.

Signed-off-by: Lance Ball <[email protected]>
  • Loading branch information
lance committed Nov 7, 2023
1 parent 9ffc638 commit 12ef12e
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .tekton/backfill-redis-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ spec:
value: "true"
- name: prefetch-input
value: [{"path": ".", "type": "gomod"}, {"path": "./hack/tools", "type": "gomod"}]
- name: build-source-image
value: true
pipelineSpec:
finally:
- name: show-sbom
Expand Down Expand Up @@ -117,6 +119,10 @@ spec:
description: Image tag expiration time, time values could be something like
1h, 2d, 3w for hours, days, and weeks, respectively.
name: image-expires-after
- default: "false"
description: Build source image
name: build-source-image
type: string
results:
- description: ""
name: IMAGE_URL
Expand Down Expand Up @@ -242,6 +248,35 @@ spec:
workspaces:
- name: source
workspace: workspace
- name: build-source-image
params:
- name: BINARY_IMAGE
value: $(params.output-image)
- name: BASE_IMAGES
value: $(tasks.build-container.results.BASE_IMAGES_DIGESTS)
runAfter:
- build-container
taskRef:
params:
- name: name
value: source-build
- name: bundle
value: quay.io/redhat-appstudio-tekton-catalog/task-source-build:0.1@sha256:e751a76622743cf51b35ba230768be9886535b7cf51491c2b8513979e7a577d8
- name: kind
value: task
resolver: bundles
when:
- input: $(tasks.init.results.build)
operator: in
values:
- "true"
- input: $(params.build-source-image)
operator: in
values:
- "true"
workspaces:
- name: workspace
workspace: workspace
- name: inspect-image
params:
- name: IMAGE_URL
Expand Down

0 comments on commit 12ef12e

Please sign in to comment.