-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.onedev-buildspec.yml
65 lines (65 loc) · 1.67 KB
/
.onedev-buildspec.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
version: 18
jobs:
- name: push to github
jobExecutor: genshin-map-shell
steps:
- !PushRepository
name: push to github
remoteUrl: https://github.com/kongying-tavern/map_register_v3.git
userName: momentderek
passwordSecret: push-secret
withLfs: false
force: false
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
triggers:
- !BranchUpdateTrigger {}
retryCondition: '"Log" contains "无法访问"'
maxRetries: 10
retryDelay: 30
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