This commit is contained in:
2025-05-09 12:58:08 -05:00
parent 53bbd61642
commit 5f47a699dc

35
.onedev-buildspec.yml Normal file
View File

@@ -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