diff --git a/.onedev-buildspec.yml b/.onedev-buildspec.yml new file mode 100644 index 0000000..15456d8 --- /dev/null +++ b/.onedev-buildspec.yml @@ -0,0 +1,33 @@ +version: 43 +jobs: +- name: build + steps: + - type: CheckoutStep + name: Checkout code + cloneCredential: + type: DefaultCredential + withLfs: true + withSubmodules: true + cloneDepth: 1 + condition: SUCCESSFUL + optional: false + - type: BuildImageStep + name: build image + output: + type: RegistryOutput + tags: onedev.site.tesses.net/tytd2025/tytdcompanion/tytdcompanion:latest + registryLogins: + - registryUrl: '@server_url@' + userName: '@job_token@' + passwordSecret: dockersecret + condition: SUCCESSFUL + optional: false + triggers: + - type: BranchUpdateTrigger + branches: master + userMatch: anyone + projects: tytd2025/tytdcompanion + retryCondition: never + maxRetries: 3 + retryDelay: 30 + timeout: 14400