The Unified and Autonomous Development Platform
Edit .onedev-buildspec.yml
Robin Shen44e2e1a9dc7d
diff --git a/.onedev-buildspec.yml b/.onedev-buildspec.ymlindex 2ffbd49095..178868731a 100644--- a/.onedev-buildspec.yml+++ b/.onedev-buildspec.yml@@ -139,6 +139,24 @@ jobs:removeDanglingImages: truemoreOptions: --builder onedev --platform linux/amd64,linux/arm64condition: 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- !CommandStepname: publish GH releaserunInContainer: true@@ -182,24 +200,6 @@ jobs:milestoneName: '@build_version@'accessTokenSecret: onedev-tokencondition: 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_SUCCESSFULjobDependencies:- jobName: CIrequireSuccessful: true