Files
crosslang-website/.onedev-buildspec.yml
2025-05-09 13:01:40 -05:00

36 lines
870 B
YAML

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