Merge branch 'master' into fix-machinereadable

This commit is contained in:
6543 2022-03-13 08:54:08 +08:00
commit 0e4c074573
2 changed files with 9 additions and 10 deletions

View file

@ -9,7 +9,7 @@ platform:
steps:
- name: build
pull: always
image: golang:1.16
image: golang:1.17
environment:
GOPROXY: https://goproxy.cn
commands:
@ -27,7 +27,7 @@ steps:
- pull_request
- name: unit-test
image: golang:1.16
image: golang:1.17
commands:
- make unit-test-coverage
settings:
@ -40,7 +40,7 @@ steps:
- pull_request
- name: release-test
image: golang:1.16
image: golang:1.17
commands:
- make test
settings:
@ -54,7 +54,7 @@ steps:
- name: tag-test
pull: always
image: golang:1.16
image: golang:1.17
commands:
- make test
settings:
@ -64,7 +64,7 @@ steps:
- tag
- name: static
image: golang:1.16
image: golang:1.17
environment:
GOPROXY: https://goproxy.cn
commands:
@ -120,8 +120,7 @@ steps:
settings:
acl: public-read
bucket: gitea-artifacts
endpoint: https://storage.gitea.io
path_style: true
endpoint: https://ams3.digitaloceanspaces.com
source: "dist/release/*"
strip_prefix: dist/release/
target: "/tea/${DRONE_BRANCH##release/v}"
@ -142,8 +141,7 @@ steps:
settings:
acl: public-read
bucket: gitea-artifacts
endpoint: https://storage.gitea.io
path_style: true
endpoint: https://ams3.digitaloceanspaces.com
source: "dist/release/*"
strip_prefix: dist/release/
target: /tea/master

View file

@ -1,7 +1,8 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
//+build vendor
//go:build vendor
// +build vendor
package main