chore: 初始化 Cloudreve 源码仓库

This commit is contained in:
2026-09-13 11:28:59 +08:00
commit 2a7b03ab1d
489 changed files with 163867 additions and 0 deletions
+47
View File
@@ -0,0 +1,47 @@
trigger:
tags:
include:
- '*'
variables:
GO_VERSION: "1.25.5"
NODE_VERSION: "22.x"
DOCKER_BUILDKIT: 1
pool:
name: Default
jobs:
- job: Release
steps:
- checkout: self
submodules: true
persistCredentials: true
- task: NodeTool@0
inputs:
versionSpec: '$(NODE_VERSION)'
displayName: 'Install Node.js'
- task: GoTool@0
inputs:
version: "$(GO_VERSION)"
displayName: Install Go
- task: Docker@2
inputs:
containerRegistry: "CR DockerHub"
command: "login"
addPipelineData: false
addBaseImageData: false
- task: CmdLine@2
displayName: "Install tonistiigi/binfmt"
inputs:
script: |
docker run --privileged --rm tonistiigi/binfmt --install all
- task: goreleaser@0
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
inputs:
version: "latest"
distribution: "goreleaser"
workdir: "$(Build.SourcesDirectory)"
args: "release --timeout 60m -p 4"
env:
GITHUB_TOKEN: $(GITHUB_TOKEN)