Edit .onedev-buildspec.yml for next build
This commit is contained in:
parent
441cf30be7
commit
a8cd10dc72
|
|
@ -1,4 +1,38 @@
|
||||||
version: 19
|
version: 19
|
||||||
|
jobs:
|
||||||
|
- name: next build
|
||||||
|
steps:
|
||||||
|
- !CheckoutStep
|
||||||
|
name: checkout
|
||||||
|
cloneCredential: !DefaultCredential {}
|
||||||
|
withLfs: false
|
||||||
|
withSubmodules: false
|
||||||
|
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
||||||
|
- !SetBuildVersionStep
|
||||||
|
name: set build version
|
||||||
|
buildVersion: '@script:builtin:node:determine-project-version@'
|
||||||
|
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
||||||
|
- !CommandStep
|
||||||
|
name: build & test
|
||||||
|
runInContainer: true
|
||||||
|
image: node:lts-hydrogen
|
||||||
|
interpreter: !DefaultInterpreter
|
||||||
|
commands:
|
||||||
|
- npm install
|
||||||
|
- export CI=TRUE
|
||||||
|
- npx next build
|
||||||
|
- npx next lint
|
||||||
|
useTTY: false
|
||||||
|
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
||||||
|
triggers:
|
||||||
|
- !BranchUpdateTrigger {}
|
||||||
|
retryCondition: never
|
||||||
|
maxRetries: 3
|
||||||
|
retryDelay: 30
|
||||||
|
caches:
|
||||||
|
- key: npm-cache
|
||||||
|
path: /root/.npm
|
||||||
|
timeout: 3600
|
||||||
services:
|
services:
|
||||||
- name: run
|
- name: run
|
||||||
image: node:lts-hydrogen
|
image: node:lts-hydrogen
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue