tag test
This commit is contained in:
@ -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)
|
Reference in New Issue
Block a user