Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(apps/prod/tekton/configs): fix pipeline and templates for custom builder image support #1315

Merged
merged 1 commit into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ spec:
- name: registry
description: the base OCI registry server for store artifacts, it can be set with prefix repo path.
default: "hub.pingcap.net"
- name: force-builder-image
description: >
The builder image to use for building binaries by force, if empty.
Default the task will complete one from config in artifacts.git repo.
type: string
default: ""
results:
- name: pushed-binaries
description: pushed binaries.
Expand Down Expand Up @@ -112,6 +118,8 @@ spec:
value: "$(params.profile)"
- name: version
value: "$(tasks.get-release-ver.results.version)"
- name: force-builder-image
value: "$(params.force-builder-image)"
- name: acquire-mac-machine
runAfter:
- checkout
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ spec:
- name: ce-context
description: cloud event context.
default: '{}'
- name: force-builder-image
default: ''
resourcetemplates:
- apiVersion: tekton.dev/v1beta1
kind: PipelineRun
Expand Down Expand Up @@ -67,6 +69,8 @@ spec:
value: amd64
- name: registry
value: $(tt.params.registry)
- name: force-builder-image
value: $(tt.params.force-builder-image)
taskRunSpecs:
- pipelineTaskName: build-binaries
taskPodTemplate:
Expand Down Expand Up @@ -140,6 +144,8 @@ spec:
value: arm64
- name: registry
value: $(tt.params.registry)
- name: force-builder-image
value: $(tt.params.force-builder-image)
taskRunSpecs:
- pipelineTaskName: build-binaries
taskPodTemplate:
Expand Down Expand Up @@ -211,6 +217,8 @@ spec:
value: amd64
- name: registry
value: $(tt.params.registry)
- name: force-builder-image
value: $(tt.params.force-builder-image)
taskRunSpecs:
- pipelineTaskName: acquire-mac-machine
taskPodTemplate:
Expand Down Expand Up @@ -274,6 +282,8 @@ spec:
value: arm64
- name: registry
value: $(tt.params.registry)
- name: force-builder-image
value: $(tt.params.force-builder-image)
taskRunSpecs:
- pipelineTaskName: acquire-mac-machine
taskPodTemplate:
Expand Down