Skip to content

Commit

Permalink
add new build.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: jtcheng <[email protected]>
  • Loading branch information
jtcheng committed Apr 11, 2024
1 parent ec992be commit b730094
Showing 1 changed file with 31 additions and 11 deletions.
42 changes: 31 additions & 11 deletions .build/build2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,18 @@ spec:
params:
- name: command
value: |
BUILDPATH=$(workspaces.source.path)
VERSIONTAG=2.6.4-$(build.git.lastCommit.shortID)-amd64
BASEIMAGETAG=${VERSIONTAG}
BASEIMAGENAMESPACE=build-harbor.alauda.cn/devops
IMAGENAMESPACE=build-harbor.alauda.cn/devops
set -x
BUILDTARGET=_build_prepare make build
BUILDPATH=$(workspaces.source.path) \
VERSIONTAG=2.6.4-$(build.git.lastCommit.shortID)-amd64 \
BASEIMAGETAG=${VERSIONTAG} \
IMAGENAMESPACE=build-harbor.alauda.cn/devops \
BASEIMAGENAMESPACE=build-harbor.alauda.cn/devops \
PUSHBASEIMAGE=false \
make build \
-e BUILDTARGET=_build_prepare \
-e DOCKERBUILD="docker buildx build --builder builder --push"
- name: build-image-db
timeout: 2.5h
Expand All @@ -93,14 +98,17 @@ spec:
params:
- name: command
value: |
set -x
BUILDPATH=$(workspaces.source.path)
VERSIONTAG=2.6.4-$(build.git.lastCommit.shortID)-amd64
BASEIMAGETAG=${VERSIONTAG}
BASEIMAGENAMESPACE=build-harbor.alauda.cn/devops
IMAGENAMESPACE=build-harbor.alauda.cn/devops
DOCKERBUILD=docker buildx build
BUILDTARGET=_build_db make build
make build \
-e BUILDTARGET=_build_db \
-e DOCKERBUILD="docker buildx build"
- name: build-image-portal
timeout: 2.5h
Expand All @@ -115,13 +123,17 @@ spec:
params:
- name: command
value: |
set -x
BUILDPATH=$(workspaces.source.path)
VERSIONTAG=2.6.4-$(build.git.lastCommit.shortID)-amd64
BASEIMAGETAG=${VERSIONTAG}
BASEIMAGENAMESPACE=build-harbor.alauda.cn/devops
IMAGENAMESPACE=build-harbor.alauda.cn/devops
BUILDTARGET=_build_portal make build
make build \
-e BUILDTARGET=_build_portal \
-e DOCKERBUILD="docker buildx build"
- name: build-image-core
timeout: 2.5h
Expand All @@ -136,13 +148,17 @@ spec:
params:
- name: command
value: |
set -x
BUILDPATH=$(workspaces.source.path)
VERSIONTAG=2.6.4-$(build.git.lastCommit.shortID)-amd64
BASEIMAGETAG=${VERSIONTAG}
BASEIMAGENAMESPACE=build-harbor.alauda.cn/devops
IMAGENAMESPACE=build-harbor.alauda.cn/devops
BUILDTARGET=_build_core make build
make build \
-e BUILDTARGET=_build_core \
-e DOCKERBUILD="docker buildx build"
- name: build-image-jobservice
timeout: 2.5h
Expand All @@ -157,10 +173,14 @@ spec:
params:
- name: command
value: |
set -x
BUILDPATH=$(workspaces.source.path)
VERSIONTAG=2.6.4-$(build.git.lastCommit.shortID)-amd64
BASEIMAGETAG=${VERSIONTAG}
BASEIMAGENAMESPACE=build-harbor.alauda.cn/devops
IMAGENAMESPACE=build-harbor.alauda.cn/devops
BUILDTARGET=_build_jobservice make build
make build \
-e BUILDTARGET=_build_jobservice \
-e DOCKERBUILD="docker buildx build"

0 comments on commit b730094

Please sign in to comment.