1
0
mirror of https://github.com/openshift/source-to-image.git synced 2026-02-05 12:44:54 +01:00
Files
source-to-image/.tekton/source-to-image-rhel9-push.yaml
Sayan Biswas 26d3bd019f Update golang to 1.23
Changes:
- Update go.mod to 1.23
- Update Dockerfiles and CI
2025-05-23 13:30:29 +05:30

62 lines
1.9 KiB
YAML

apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
annotations:
build.appstudio.openshift.io/repo: https://github.com/openshift/source-to-image?rev={{revision}}
build.appstudio.redhat.com/commit_sha: '{{revision}}'
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-cel-expression: |
event == "push" &&
target_branch == "master" &&
(
files.all.exists(x, x.matches('cmd/|pkg/')) ||
files.all.exists(x, x.matches('go.mod|go.sum|rhel9.Dockerfile')) ||
files.all.exists(x, x.matches('.tekton/source-to-image-rhel9-push.yaml'))
)
creationTimestamp: null
labels:
appstudio.openshift.io/application: source-to-image
appstudio.openshift.io/component: source-to-image-rhel9
pipelines.appstudio.openshift.io/type: build
name: source-to-image-rhel9-on-push
namespace: ocp-tools-s2i-tenant
spec:
params:
- name: git-url
value: '{{source_url}}'
- name: revision
value: '{{revision}}'
- name: output-image
value: quay.io/redhat-user-workloads/ocp-tools-s2i-tenant/source-to-image-rhel9:{{revision}}
- name: dockerfile
value: rhel9.Dockerfile
- name: build-source-image
value: "true"
- name: hermetic
value: "true"
- name: build-platforms
value:
- linux/x86_64
- linux/arm64
- linux/ppc64le
- linux/s390x
- name: prefetch-input
value: '{"packages": [{"type": "gomod"}]}'
pipelineRef:
resolver: git
params:
- name: url
value: https://github.com/redhat-openshift-builds/release.git
- name: revision
value: main
- name: pathInRepo
value: /pipelines/konflux-build-multi-platform.yaml
taskRunTemplate:
serviceAccountName: build-pipeline-source-to-image-rhel9
workspaces:
- name: git-auth
secret:
secretName: '{{ git_auth_secret }}'
status: {}