Edit .onedev-buildspec.yml
This commit is contained in:
parent
4650c4eb4d
commit
b65576e0d4
|
|
@ -22,9 +22,12 @@ jobs:
|
||||||
- export CI=TRUE
|
- export CI=TRUE
|
||||||
- export DATABASE_URL=file:./db.sqlite
|
- export DATABASE_URL=file:./db.sqlite
|
||||||
- npx next build
|
- npx next build
|
||||||
- npx next lint
|
|
||||||
useTTY: false
|
useTTY: false
|
||||||
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
||||||
|
- !PublishArtifactStep
|
||||||
|
name: publish
|
||||||
|
artifacts: '*'
|
||||||
|
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
||||||
triggers:
|
triggers:
|
||||||
- !BranchUpdateTrigger {}
|
- !BranchUpdateTrigger {}
|
||||||
retryCondition: never
|
retryCondition: never
|
||||||
|
|
@ -34,6 +37,21 @@ jobs:
|
||||||
- key: npm-cache
|
- key: npm-cache
|
||||||
path: /root/.npm
|
path: /root/.npm
|
||||||
timeout: 3600
|
timeout: 3600
|
||||||
|
- name: deploy
|
||||||
|
steps:
|
||||||
|
- !BuildImageStep
|
||||||
|
name: deploy
|
||||||
|
tags: pchl:latest
|
||||||
|
publish: false
|
||||||
|
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
||||||
|
jobDependencies:
|
||||||
|
- jobName: next build
|
||||||
|
requireSuccessful: true
|
||||||
|
artifacts: '**'
|
||||||
|
retryCondition: never
|
||||||
|
maxRetries: 3
|
||||||
|
retryDelay: 30
|
||||||
|
timeout: 3600
|
||||||
services:
|
services:
|
||||||
- name: run
|
- name: run
|
||||||
image: node:lts-hydrogen
|
image: node:lts-hydrogen
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue