diff --git a/.onedev-buildspec.yml b/.onedev-buildspec.yml new file mode 100644 index 0000000..ab35745 --- /dev/null +++ b/.onedev-buildspec.yml @@ -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