mirror of
https://onedev.site.tesses.net/crosslang/crosslang-website
synced 2026-02-08 09:05:47 +00:00
36 lines
870 B
YAML
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
|