Skip to content

Commit

Permalink
cicd: beta CICD配置更改
Browse files Browse the repository at this point in the history
  • Loading branch information
mikezhuang2022 committed Jan 25, 2023
1 parent faa183d commit d10ec55
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .onedev-buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,47 @@ jobs:
cpuRequirement: 250
memoryRequirement: 256
timeout: 3600
- name: builld
steps:
- !CommandStep
name: cd the workspace and pull from oneDev
runInContainer: false
interpreter: !DefaultInterpreter
commands:
- cd @secret:workspace-path@
- git checkout -q beta
- git checkout . && git clean -xdf -e .env.*.local
- git pull -r --autostash
useTTY: false
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
- !CommandStep
name: download dependency
runInContainer: false
interpreter: !DefaultInterpreter
commands:
- cd @secret:workspace-path@
- sudo rm -rf ./node_modules
- pnpm i
useTTY: false
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
- !CommandStep
name: build
runInContainer: false
interpreter: !DefaultInterpreter
commands:
- cd @secret:workspace-path@
- pnpm run build
useTTY: false
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
- !PublishArtifactStep
name: publish
artifacts: 'dist/**'
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
triggers:
- !BranchUpdateTrigger {}
retryCondition: never
maxRetries: 3
retryDelay: 30
cpuRequirement: 250
memoryRequirement: 256
timeout: 3600

0 comments on commit d10ec55

Please sign in to comment.