This commit is contained in:
2025-08-05 00:51:04 +09:00
parent 4e6ad9f276
commit 391d705142

View File

@ -5,10 +5,15 @@ 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.clone_url)
- name: git-revision - name: git-revision
value: $(body.ref) value: $(body.ref)
- name: commit-sha - name: commit-sha
value: $(body.head_commit.id[0:7]) # ✅ 첫 7자 추출 value: $(extensions.short_sha)