my-portfolio/.onedev-buildspec.yml
2024-04-13 21:42:37 +00:00

29 lines
668 B
YAML

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