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