From e2b053d3bd75a60df76eb5ae1dcc38533b8545d0 Mon Sep 17 00:00:00 2001 From: vnugent Date: Wed, 24 Jan 2024 00:27:55 -0500 Subject: add github sync --- .onedev-buildspec.yml | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .onedev-buildspec.yml diff --git a/.onedev-buildspec.yml b/.onedev-buildspec.yml new file mode 100644 index 0000000..4b148e4 --- /dev/null +++ b/.onedev-buildspec.yml @@ -0,0 +1,44 @@ +version: 17 +jobs: +- name: GitHub Push + steps: + - !PushRepository + name: Github push sync + remoteUrl: https://github.com/VnUgE/Simple-Bookmark.git + userName: VnUgE + passwordSecret: github-access-token + withLfs: false + force: false + condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL + triggers: + - !TagCreateTrigger + projects: Simple-Bookmark + - !BranchUpdateTrigger + projects: Simple-Bookmark + retryCondition: never + maxRetries: 3 + retryDelay: 30 + cpuRequirement: 250 + memoryRequirement: 256 + timeout: 3600 +- name: GitHub Pull + steps: + - !PullRepository + name: GitHub sync pull + remoteUrl: https://github.com/VnUgE/Simple-Bookmark.git + userName: VnUgE + passwordSecret: github-access-token + refs: refs/heads/* refs/tags/* + withLfs: false + force: false + condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL + triggers: + - !ScheduleTrigger + cronExpression: 0 15 10 ? * * + projects: Simple-Bookmark + retryCondition: never + maxRetries: 3 + retryDelay: 30 + cpuRequirement: 250 + memoryRequirement: 256 + timeout: 3600 -- cgit