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 name: docker-build-binding
namespace: tekton-demo namespace: tekton-demo
spec: spec:
interceptors:
- cel:
overlays:
- key: short_sha
expression: "body.head_commit.id.substring(0,7)"
params: params:
- name: git-url - name: git-url
value: $(body.repository.clone_url) value: $(body.repository.git_http_url)
- name: git-revision - name: git-revision
value: $(body.ref) value: $(body.head_commit.id)
- name: commit-sha - name: commit-sha
value: $(extensions.short_sha) value: $(body.head_commit.id)

View File

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