diff --git a/.onedev-buildspec.yml b/.onedev-buildspec.yml index ea161df..4a7a92b 100644 --- a/.onedev-buildspec.yml +++ b/.onedev-buildspec.yml @@ -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