diff --git a/.onedev-buildspec.yml b/.onedev-buildspec.yml new file mode 100644 index 0000000..45bd657 --- /dev/null +++ b/.onedev-buildspec.yml @@ -0,0 +1,35 @@ +version: 39 +jobs: +- name: Build + steps: + - !CheckoutStep + name: Checkout + cloneCredential: !DefaultCredential {} + withLfs: true + withSubmodules: true + cloneDepth: 1 + condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL + - !CommandStep + name: Execute + runInContainer: true + image: hugomods/hugo + interpreter: !DefaultInterpreter + commands: | + hugo + useTTY: true + condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL + - !SCPCommandStep + name: Copy files + privateKeySecret: tesses-www-private-key + source: public/ + target: tesses@@10.137.42.28:/var/www/crosslang.tesseslanguage.com/ + options: -r + condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL + triggers: + - !BranchUpdateTrigger + branches: master + projects: crosslang/crosslang-website + retryCondition: never + maxRetries: 3 + retryDelay: 30 + timeout: 14400