Skip to content

The Unified and Autonomous Development Platform

Edit .onedev-buildspec.yml

Robin Shen44e2e1a9dc7d
diff --git a/.onedev-buildspec.yml b/.onedev-buildspec.yml
index 2ffbd49095..178868731a 100644
--- a/.onedev-buildspec.yml
+++ b/.onedev-buildspec.yml
@@ -139,6 +139,24 @@ jobs:
removeDanglingImages: true
moreOptions: --builder onedev --platform linux/amd64,linux/arm64
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
+ - !CommandStep
+ name: publish helm chart
+ runInContainer: true
+ image: '@property:buildEnvironment@'
+ interpreter: !DefaultInterpreter
+ commands:
+ - set -e
+ - ''
+ - buildVersion=@build_version@
+ - projectDir=`pwd`
+ - ''
+ - cd $projectDir/server-product/helm
+ - ./prepare.sh
+ - ''
+ - cd $projectDir/server-product/target/helm-chart
+ - cloudsmith push helm onedev/onedev onedev-${buildVersion}.tgz -k @secret:cloudsmith-token@
+ useTTY: false
+ condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
- !CommandStep
name: publish GH release
runInContainer: true
@@ -182,24 +200,6 @@ jobs:
milestoneName: '@build_version@'
accessTokenSecret: onedev-token
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
- - !CommandStep
- name: publish helm chart
- runInContainer: true
- image: '@property:buildEnvironment@'
- interpreter: !DefaultInterpreter
- commands:
- - set -e
- - ''
- - buildVersion=@build_version@
- - projectDir=`pwd`
- - ''
- - cd $projectDir/server-product/helm
- - ./prepare.sh
- - ''
- - cd $projectDir/server-product/target/helm-chart
- - cloudsmith push helm onedev/onedev onedev-${buildVersion}.tgz -k @secret:cloudsmith-token@
- useTTY: false
- condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
jobDependencies:
- jobName: CI
requireSuccessful: true