build with go1.17 & use supported s3 plugin (#56)
this will build with arm64 for darwin because it has been added to xgo plugin Co-authored-by: Matti R <matti@mdranta.net> Reviewed-on: https://gitea.com/gitea/changelog/pulls/56 Reviewed-by: Andrew Thornton <art27@cantab.net> Reviewed-by: Alexey 〒erentyev <axifive@noreply.gitea.io> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-committed-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
parent
c38cabc3dc
commit
ea56b8af5a
12
.drone.yml
12
.drone.yml
@ -13,7 +13,7 @@ trigger:
|
|||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
pull: always
|
pull: always
|
||||||
image: golang:1.13
|
image: golang:1.17
|
||||||
environment:
|
environment:
|
||||||
GOPROXY: https://goproxy.cn,direct
|
GOPROXY: https://goproxy.cn,direct
|
||||||
commands:
|
commands:
|
||||||
@ -22,7 +22,7 @@ steps:
|
|||||||
|
|
||||||
- name: check
|
- name: check
|
||||||
pull: always
|
pull: always
|
||||||
image: golang:1.13
|
image: golang:1.17
|
||||||
environment:
|
environment:
|
||||||
GOPROXY: https://goproxy.cn,direct
|
GOPROXY: https://goproxy.cn,direct
|
||||||
commands:
|
commands:
|
||||||
@ -77,10 +77,10 @@ steps:
|
|||||||
|
|
||||||
- name: bucket-master
|
- name: bucket-master
|
||||||
pull: always
|
pull: always
|
||||||
image: plugins/s3:1
|
image: woodpeckerci/plugin-s3:latest
|
||||||
settings:
|
settings:
|
||||||
acl: public-read
|
acl: public-read
|
||||||
bucket: releases
|
bucket: gitea-artifacts
|
||||||
endpoint: https://storage.gitea.io
|
endpoint: https://storage.gitea.io
|
||||||
path_style: true
|
path_style: true
|
||||||
source: "dist/release/*"
|
source: "dist/release/*"
|
||||||
@ -97,10 +97,10 @@ steps:
|
|||||||
|
|
||||||
- name: bucket-tag
|
- name: bucket-tag
|
||||||
pull: always
|
pull: always
|
||||||
image: plugins/s3:1
|
image: woodpeckerci/plugin-s3:latest
|
||||||
settings:
|
settings:
|
||||||
acl: public-read
|
acl: public-read
|
||||||
bucket: releases
|
bucket: gitea-artifacts
|
||||||
endpoint: https://storage.gitea.io
|
endpoint: https://storage.gitea.io
|
||||||
path_style: true
|
path_style: true
|
||||||
source: "dist/release/*"
|
source: "dist/release/*"
|
||||||
|
2
Makefile
2
Makefile
@ -29,7 +29,7 @@ generate:
|
|||||||
lint:
|
lint:
|
||||||
@hash golangci-lint > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
@hash golangci-lint > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
||||||
export BINARY="golangci-lint"; \
|
export BINARY="golangci-lint"; \
|
||||||
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.23.1; \
|
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.37.0; \
|
||||||
fi
|
fi
|
||||||
golangci-lint run --timeout 5m
|
golangci-lint run --timeout 5m
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user