This commit is contained in:
2025-08-05 00:53:35 +09:00
parent 391d705142
commit cb0ee48bd1
2 changed files with 11 additions and 10 deletions

View File

@ -5,15 +5,10 @@ metadata:
name: docker-build-binding
namespace: tekton-demo
spec:
interceptors:
- cel:
overlays:
- key: short_sha
expression: "body.head_commit.id.substring(0,7)"
params:
- name: git-url
value: $(body.repository.clone_url)
value: $(body.repository.git_http_url)
- name: git-revision
value: $(body.ref)
value: $(body.head_commit.id)
- name: commit-sha
value: $(extensions.short_sha)
value: $(body.head_commit.id)

View File

@ -8,7 +8,13 @@ spec:
serviceAccountName: tekton-build-sa
triggers:
- name: gitea-trigger
interceptors:
- cel:
filter: "header.match('X-Gitea-Event', 'push')"
overlays:
- key: shortsha
expression: "body.head_commit.id.truncate(7)"
bindings:
- ref: docker-build-binding # ✅ 수정
- ref: docker-build-binding
template:
ref: docker-build-template # ✅ 수정
ref: docker-build-template