Skip to content

Commit d10ec55

Browse files
cicd: beta CICD配置更改
1 parent faa183d commit d10ec55

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.onedev-buildspec.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,47 @@ jobs:
1919
cpuRequirement: 250
2020
memoryRequirement: 256
2121
timeout: 3600
22+
- name: builld
23+
steps:
24+
- !CommandStep
25+
name: cd the workspace and pull from oneDev
26+
runInContainer: false
27+
interpreter: !DefaultInterpreter
28+
commands:
29+
- cd @secret:workspace-path@
30+
- git checkout -q beta
31+
- git checkout . && git clean -xdf -e .env.*.local
32+
- git pull -r --autostash
33+
useTTY: false
34+
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
35+
- !CommandStep
36+
name: download dependency
37+
runInContainer: false
38+
interpreter: !DefaultInterpreter
39+
commands:
40+
- cd @secret:workspace-path@
41+
- sudo rm -rf ./node_modules
42+
- pnpm i
43+
useTTY: false
44+
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
45+
- !CommandStep
46+
name: build
47+
runInContainer: false
48+
interpreter: !DefaultInterpreter
49+
commands:
50+
- cd @secret:workspace-path@
51+
- pnpm run build
52+
useTTY: false
53+
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
54+
- !PublishArtifactStep
55+
name: publish
56+
artifacts: 'dist/**'
57+
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
58+
triggers:
59+
- !BranchUpdateTrigger {}
60+
retryCondition: never
61+
maxRetries: 3
62+
retryDelay: 30
63+
cpuRequirement: 250
64+
memoryRequirement: 256
65+
timeout: 3600

0 commit comments

Comments
 (0)