Add build stuffs

This commit is contained in:
2025-10-15 00:32:32 -05:00
parent 5e354c05be
commit 977d44b79e
6 changed files with 750 additions and 4 deletions

47
.onedev-buildspec.yml Normal file
View File

@@ -0,0 +1,47 @@
version: 39
jobs:
- name: Build
steps:
- !CheckoutStep
name: Checkout code
cloneCredential: !DefaultCredential {}
withLfs: true
withSubmodules: true
cloneDepth: 1
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
- !CommandStep
name: Build and push
runInContainer: true
image: onedev.site.tesses.net/crosslang/crosslangextras/crosslangextras:latest
interpreter: !DefaultInterpreter
commands: |
cd Tesses.YouTubeDownloader.Server
crosslang build
crosslang upload-package --token="$CPKG_KEY" --host="https://cpkg.tesseslanguage.com/"
cd ../Tesses.YouTubeDownloader
crosslang upload-package --token="$CPKG_KEY" --host="https://cpkg.tesseslanguage.com/"
cd ../Tesses.YouTubeDownloader.PluginTemplate
crosslang build
crosslang upload-package --token="$CPKG_KEY" --host="https://cpkg.tesseslanguage.com/"
envVars:
- name: CPKG_KEY
value: '@secret:CPKG_KEY@'
useTTY: true
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
- !BuildImageStep
name: Build Container
output: !RegistryOutput
tags: onedev.site.tesses.net/tytd2025:latest
registryLogins:
- registryUrl: '@server_url@'
userName: '@job_token@'
passwordSecret: dockersecret
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
triggers:
- !BranchUpdateTrigger
branches: master
projects: tytd2025
retryCondition: never
maxRetries: 3
retryDelay: 30
timeout: 14400