aboutsummaryrefslogtreecommitdiff
path: root/.onedev-buildspec.yml
blob: 97009862aeb953eb93ecdfe955e18b16dafc9f30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
version: 33
jobs:
- name: Repo Sync Push
  steps:
  - !PushRepository
    name: Github sync push
    remoteUrl: https://github.com/VnUgE/VNLib.Core.git
    userName: VnUgE
    passwordSecret: git-access-token
    force: true
    condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
  - !PushRepository
    name: Codeberg push sync
    remoteUrl: https://codeberg.org/VnUgE/VNLib.Core.git
    userName: VnUgE
    passwordSecret: codeberg-access-token
    force: true
    condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
  triggers:
  - !TagCreateTrigger
    projects: VNLib.Core
  - !BranchUpdateTrigger
    projects: VNLib.Core
  retryCondition: never
  maxRetries: 3
  retryDelay: 30
  timeout: 3600
- name: Repo Sync Pull
  steps:
  - !PullRepository
    name: GitHub sync pull
    remoteUrl: https://github.com/VnUgE/VNLib.Core.git
    userName: VnUgE
    passwordSecret: git-access-token
    refs: refs/heads/* refs/tags/*
    withLfs: false
    force: false
    condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
  triggers:
  - !ScheduleTrigger
    cronExpression: 0 15 10 ? * *
    projects: VNLib.Core
  retryCondition: never
  maxRetries: 3
  retryDelay: 30
  timeout: 3600