2019-02-06 17:25:58 -05:00
|
|
|
trigger:
|
|
|
|
batch: true
|
2019-02-06 17:28:18 -05:00
|
|
|
branches:
|
|
|
|
include:
|
2020-07-23 00:54:26 -04:00
|
|
|
- master
|
|
|
|
- dev*
|
|
|
|
- refs/tags/*
|
2019-02-06 17:28:18 -05:00
|
|
|
|
2020-07-23 00:54:26 -04:00
|
|
|
pool:
|
2020-10-07 02:29:07 -04:00
|
|
|
vmImage: "ubuntu-latest"
|
2019-02-06 17:25:58 -05:00
|
|
|
|
2020-07-23 00:54:26 -04:00
|
|
|
variables:
|
|
|
|
- group: GithubToken
|
2019-02-06 17:25:58 -05:00
|
|
|
|
2020-07-23 00:54:26 -04:00
|
|
|
steps:
|
2019-04-15 06:39:47 -04:00
|
|
|
- checkout: self
|
2019-02-06 17:25:58 -05:00
|
|
|
- task: GoTool@0
|
|
|
|
inputs:
|
2020-10-15 07:07:54 -04:00
|
|
|
version: "1.15.3"
|
2019-02-06 17:25:58 -05:00
|
|
|
- script: |
|
|
|
|
go version
|
2020-10-02 04:09:33 -04:00
|
|
|
go mod download
|
2020-10-07 02:29:07 -04:00
|
|
|
workingDirectory: $(system.defaultWorkingDirectory)
|
|
|
|
displayName: "Fetch sources"
|
2019-02-07 06:38:44 -05:00
|
|
|
- script: |
|
2020-10-07 02:29:07 -04:00
|
|
|
bazel build --action_env=PATH=$PATH --action_env=GOPATH=$(go env GOPATH) --action_env=GOCACHE=$(go env GOCACHE) --action_env=SPWD=$(pwd) --spawn_strategy local //release:all
|
|
|
|
workingDirectory: $(system.defaultWorkingDirectory)
|
|
|
|
displayName: "Build Binaries"
|
2019-02-07 06:38:44 -05:00
|
|
|
- script: |
|
2019-04-16 04:09:08 -04:00
|
|
|
echo $RELEASE_TAG
|
2019-04-16 00:26:36 -04:00
|
|
|
./release/bleedingrelease.sh
|
2020-10-07 02:29:07 -04:00
|
|
|
workingDirectory: $(system.defaultWorkingDirectory)
|
|
|
|
displayName: "Generate Bleeding Edge Release"
|
2019-04-16 00:26:36 -04:00
|
|
|
env:
|
2020-10-07 02:29:07 -04:00
|
|
|
WORKDIR: $(system.defaultWorkingDirectory)
|
2019-04-16 00:26:36 -04:00
|
|
|
GITHUB_TOKEN: $(GITHUB_TOKEN)
|
|
|
|
PRERELEASE: true
|
2019-04-16 06:45:36 -04:00
|
|
|
RELEASE_TAG: unstable-$(Build.SourceVersion)
|
2020-07-02 07:10:38 -04:00
|
|
|
RELEASE_SHA: $(Build.SourceVersion)
|
|
|
|
TRIGGER_REASON: $(Build.SourceBranch)
|
|
|
|
GITHUB_REPO_OWNER: v2fly
|
|
|
|
GITHUB_REPO_NAME: v2ray-core
|
2019-10-30 03:03:29 -04:00
|
|
|
- script: |
|
|
|
|
echo $RELEASE_TAG
|
|
|
|
./release/tagrelease.sh
|
2020-10-07 02:29:07 -04:00
|
|
|
workingDirectory: $(system.defaultWorkingDirectory)
|
|
|
|
displayName: "Generate Tag Release"
|
2019-10-30 03:03:29 -04:00
|
|
|
env:
|
2020-10-07 02:29:07 -04:00
|
|
|
WORKDIR: $(system.defaultWorkingDirectory)
|
2019-10-30 03:03:29 -04:00
|
|
|
GITHUB_TOKEN: $(GITHUB_TOKEN)
|
|
|
|
PRERELEASE: true
|
|
|
|
RELEASE_TAG: unstable-$(Build.SourceVersion)
|
2020-10-07 02:29:07 -04:00
|
|
|
RELEASE_SHA: $(Build.SourceVersion)
|
2019-10-30 03:03:29 -04:00
|
|
|
TRIGGER_REASON: $(Build.SourceBranch)
|