Add .onedev-buildspec.yml
This commit is contained in:
parent
fce514ff54
commit
3f11186fc3
28
.onedev-buildspec.yml
Normal file
28
.onedev-buildspec.yml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
version: 31
|
||||||
|
jobs:
|
||||||
|
- name: portfolio ci
|
||||||
|
steps:
|
||||||
|
- !CheckoutStep
|
||||||
|
name: checkout
|
||||||
|
cloneCredential: !DefaultCredential {}
|
||||||
|
withLfs: false
|
||||||
|
withSubmodules: false
|
||||||
|
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
||||||
|
- !CommandStep
|
||||||
|
name: build
|
||||||
|
runInContainer: false
|
||||||
|
interpreter: !DefaultInterpreter
|
||||||
|
commands: |
|
||||||
|
npm build
|
||||||
|
useTTY: true
|
||||||
|
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
||||||
|
- !BuildImageStep
|
||||||
|
name: build image
|
||||||
|
tags: rannes.dev/portfolio
|
||||||
|
publish: false
|
||||||
|
removeDanglingImages: true
|
||||||
|
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
||||||
|
retryCondition: never
|
||||||
|
maxRetries: 3
|
||||||
|
retryDelay: 30
|
||||||
|
timeout: 3600
|
Loading…
Reference in New Issue
Block a user