Add .onedev-buildspec.yml

This commit is contained in:
Christian Rannes 2024-04-13 21:42:37 +00:00
parent fce514ff54
commit 3f11186fc3

28
.onedev-buildspec.yml Normal file
View 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