Skip to content

Commit

Permalink
Merge pull request #18 from katanomi/feat/add-buildyaml
Browse files Browse the repository at this point in the history
add build yaml
  • Loading branch information
jtcheng authored and l-qing committed Nov 20, 2022
1 parent e38d112 commit 46b15a3
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .build/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
kind: Build
apiVersion: builds.katanomi.dev/v1alpha1
spec:
workspaces:
- name: source
tasks:
## read oss version
- name: oss-version
taskRef:
kind: ClusterTask
name: alauda-read-oss-version
params:
- name: version-file-path
value: ".build/opensource-version"
workspaces:
- name: source
workspace: source
## ko publish image
- name: build-entrypoint
taskRef:
kind: ClusterTask
name: alauda-ko-build
workspaces:
- name: source
workspace: source
params:
- name: verbose
value: "false"
- name: import-path
value: "github.com/tektoncd/pipeline/cmd/entrypoint"
- name: container-image
value: "build-harbor.alauda.cn/devops/tektoncd/pipeline/cmd/entrypoint"
- name: container-image-tag
value: v$(tasks.oss-version.results.oss-version)-$(tasks.oss-version.results.commit-short-id)
## ko publish image
- name: build-git-init
taskRef:
kind: ClusterTask
name: alauda-ko-build
workspaces:
- name: source
workspace: source
params:
- name: verbose
value: "false"
- name: import-path
value: "github.com/tektoncd/pipeline/cmd/git-init"
- name: container-image
value: "build-harbor.alauda.cn/devops/tektoncd/pipeline/cmd/git-init"
- name: container-image-tag
value: v$(tasks.oss-version.results.oss-version)-$(tasks.oss-version.results.commit-short-id)
1 change: 1 addition & 0 deletions .build/opensource-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.37

0 comments on commit 46b15a3

Please sign in to comment.