Edit .onedev-buildspec.yml

This commit is contained in:
Guillaume Dorce 2023-02-15 19:08:47 +00:00
parent 4650c4eb4d
commit b65576e0d4
1 changed files with 19 additions and 1 deletions

View File

@ -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