diff --git a/.build/build.yaml b/.build/build.yaml new file mode 100644 index 00000000000..8240fd7786c --- /dev/null +++ b/.build/build.yaml @@ -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) diff --git a/.build/opensource-version b/.build/opensource-version new file mode 100644 index 00000000000..c128d4d9e49 --- /dev/null +++ b/.build/opensource-version @@ -0,0 +1 @@ +0.37