Edit .onedev-buildspec.yml
This commit is contained in:
parent
4650c4eb4d
commit
b65576e0d4
|
|
@ -22,9 +22,12 @@ jobs:
|
|||
- export CI=TRUE
|
||||
- export DATABASE_URL=file:./db.sqlite
|
||||
- npx next build
|
||||
- npx next lint
|
||||
useTTY: false
|
||||
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
||||
- !PublishArtifactStep
|
||||
name: publish
|
||||
artifacts: '*'
|
||||
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
||||
triggers:
|
||||
- !BranchUpdateTrigger {}
|
||||
retryCondition: never
|
||||
|
|
@ -34,6 +37,21 @@ jobs:
|
|||
- key: npm-cache
|
||||
path: /root/.npm
|
||||
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:
|
||||
- name: run
|
||||
image: node:lts-hydrogen
|
||||
|
|
|
|||
Loading…
Reference in New Issue