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