mirror of
https://onedev.site.tesses.net/crosslang/crosslang-website
synced 2026-02-08 17:15:46 +00:00
Add ci
This commit is contained in:
35
.onedev-buildspec.yml
Normal file
35
.onedev-buildspec.yml
Normal 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
|
||||||
Reference in New Issue
Block a user