parent
625cf1c296
commit
b8697e69b5
262
.drone.yml
262
.drone.yml
|
@ -1,122 +1,83 @@
|
|||
---
|
||||
kind: pipeline
|
||||
name: testing
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: amd64
|
||||
|
||||
os: linux
|
||||
services:
|
||||
- image: redis
|
||||
name: redis
|
||||
- commands:
|
||||
- /nsqd
|
||||
image: nsqio/nsq
|
||||
name: nsq
|
||||
steps:
|
||||
- name: lint
|
||||
pull: always
|
||||
image: golangci/golangci-lint:v1.44.0
|
||||
commands:
|
||||
- golangci-lint run -v
|
||||
volumes:
|
||||
- name: gopath
|
||||
path: /go
|
||||
|
||||
- name: embedmd
|
||||
pull: always
|
||||
image: golang:1.17
|
||||
commands:
|
||||
- commands:
|
||||
- make embedmd
|
||||
image: golang:1.18
|
||||
name: embedmd
|
||||
pull: always
|
||||
volumes:
|
||||
- name: gopath
|
||||
path: /go
|
||||
|
||||
- name: hadolint
|
||||
pull: always
|
||||
image: hadolint/hadolint:latest-debian
|
||||
commands:
|
||||
- commands:
|
||||
- hadolint --version
|
||||
- hadolint docker/Dockerfile.linux.amd64
|
||||
- hadolint docker/Dockerfile.linux.arm64
|
||||
- hadolint docker/Dockerfile.linux.arm
|
||||
image: hadolint/hadolint:latest-debian
|
||||
name: hadolint
|
||||
pull: always
|
||||
volumes:
|
||||
- name: gopath
|
||||
path: /go
|
||||
|
||||
- name: test
|
||||
pull: always
|
||||
image: golang:1.17
|
||||
commands:
|
||||
- make test
|
||||
environment:
|
||||
ANDROID_API_KEY:
|
||||
from_secret: android_api_key
|
||||
ANDROID_TEST_TOKEN:
|
||||
from_secret: android_test_token
|
||||
volumes:
|
||||
- name: gopath
|
||||
path: /go
|
||||
|
||||
- name: codecov
|
||||
pull: always
|
||||
image: robertstettner/drone-codecov
|
||||
settings:
|
||||
token:
|
||||
from_secret: codecov_token
|
||||
|
||||
services:
|
||||
- name: redis
|
||||
image: redis
|
||||
|
||||
- name: nsq
|
||||
image: nsqio/nsq
|
||||
commands:
|
||||
- /nsqd
|
||||
|
||||
volumes:
|
||||
- name: gopath
|
||||
temp: {}
|
||||
|
||||
---
|
||||
depends_on:
|
||||
- testing
|
||||
kind: pipeline
|
||||
name: linux-amd64
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: amd64
|
||||
|
||||
os: linux
|
||||
steps:
|
||||
- name: build-push
|
||||
pull: always
|
||||
image: golang:1.17
|
||||
commands:
|
||||
- commands:
|
||||
- go build -v -ldflags '-X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/amd64/gorush
|
||||
environment:
|
||||
CGO_ENABLED: 0
|
||||
CGO_ENABLED: "0"
|
||||
image: golang:1.18
|
||||
name: build-push
|
||||
pull: always
|
||||
when:
|
||||
event:
|
||||
exclude:
|
||||
- tag
|
||||
|
||||
- name: build-tag
|
||||
pull: always
|
||||
image: golang:1.17
|
||||
commands:
|
||||
- go build -v -ldflags '-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/amd64/gorush
|
||||
- commands:
|
||||
- go build -v -ldflags '-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}'
|
||||
-a -o release/linux/amd64/gorush
|
||||
environment:
|
||||
CGO_ENABLED: 0
|
||||
CGO_ENABLED: "0"
|
||||
image: golang:1.18
|
||||
name: build-tag
|
||||
pull: always
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
|
||||
- name: executable
|
||||
pull: always
|
||||
image: golang:1.17
|
||||
commands:
|
||||
- commands:
|
||||
- ./release/linux/amd64/gorush --help
|
||||
|
||||
- name: publish
|
||||
image: golang:1.18
|
||||
name: executable
|
||||
pull: always
|
||||
- image: plugins/docker:linux-amd64
|
||||
name: publish
|
||||
pull: always
|
||||
image: plugins/docker:linux-amd64
|
||||
settings:
|
||||
auto_tag: true
|
||||
auto_tag_suffix: linux-amd64
|
||||
cache_from: appleboy/gorush
|
||||
daemon_off: false
|
||||
daemon_off: "false"
|
||||
dockerfile: docker/Dockerfile.linux.amd64
|
||||
password:
|
||||
from_secret: docker_password
|
||||
|
@ -127,62 +88,55 @@ steps:
|
|||
event:
|
||||
exclude:
|
||||
- pull_request
|
||||
|
||||
trigger:
|
||||
ref:
|
||||
- refs/heads/master
|
||||
- refs/pull/**
|
||||
- refs/tags/**
|
||||
|
||||
---
|
||||
depends_on:
|
||||
- testing
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
name: linux-arm64
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: arm64
|
||||
|
||||
os: linux
|
||||
steps:
|
||||
- name: build-push
|
||||
pull: always
|
||||
image: golang:1.17
|
||||
commands:
|
||||
- commands:
|
||||
- go build -v -ldflags '-X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm64/gorush
|
||||
environment:
|
||||
CGO_ENABLED: 0
|
||||
CGO_ENABLED: "0"
|
||||
image: golang:1.18
|
||||
name: build-push
|
||||
pull: always
|
||||
when:
|
||||
event:
|
||||
exclude:
|
||||
- tag
|
||||
|
||||
- name: build-tag
|
||||
pull: always
|
||||
image: golang:1.17
|
||||
commands:
|
||||
- go build -v -ldflags '-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm64/gorush
|
||||
- commands:
|
||||
- go build -v -ldflags '-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}'
|
||||
-a -o release/linux/arm64/gorush
|
||||
environment:
|
||||
CGO_ENABLED: 0
|
||||
CGO_ENABLED: "0"
|
||||
image: golang:1.18
|
||||
name: build-tag
|
||||
pull: always
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
|
||||
- name: executable
|
||||
pull: always
|
||||
image: golang:1.17
|
||||
commands:
|
||||
- commands:
|
||||
- ./release/linux/arm64/gorush --help
|
||||
|
||||
- name: publish
|
||||
image: golang:1.18
|
||||
name: executable
|
||||
pull: always
|
||||
- image: plugins/docker:linux-arm64
|
||||
name: publish
|
||||
pull: always
|
||||
image: plugins/docker:linux-arm64
|
||||
settings:
|
||||
auto_tag: true
|
||||
auto_tag_suffix: linux-arm64
|
||||
cache_from: appleboy/gorush
|
||||
daemon_off: false
|
||||
daemon_off: "false"
|
||||
dockerfile: docker/Dockerfile.linux.arm64
|
||||
password:
|
||||
from_secret: docker_password
|
||||
|
@ -193,62 +147,55 @@ steps:
|
|||
event:
|
||||
exclude:
|
||||
- pull_request
|
||||
|
||||
trigger:
|
||||
ref:
|
||||
- refs/heads/master
|
||||
- refs/pull/**
|
||||
- refs/tags/**
|
||||
|
||||
---
|
||||
depends_on:
|
||||
- testing
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
name: linux-arm
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: arm
|
||||
|
||||
os: linux
|
||||
steps:
|
||||
- name: build-push
|
||||
pull: always
|
||||
image: golang:1.17
|
||||
commands:
|
||||
- commands:
|
||||
- go build -v -ldflags '-X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm/gorush
|
||||
environment:
|
||||
CGO_ENABLED: 0
|
||||
CGO_ENABLED: "0"
|
||||
image: golang:1.18
|
||||
name: build-push
|
||||
pull: always
|
||||
when:
|
||||
event:
|
||||
exclude:
|
||||
- tag
|
||||
|
||||
- name: build-tag
|
||||
pull: always
|
||||
image: golang:1.17
|
||||
commands:
|
||||
- go build -v -ldflags '-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm/gorush
|
||||
- commands:
|
||||
- go build -v -ldflags '-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}'
|
||||
-a -o release/linux/arm/gorush
|
||||
environment:
|
||||
CGO_ENABLED: 0
|
||||
CGO_ENABLED: "0"
|
||||
image: golang:1.18
|
||||
name: build-tag
|
||||
pull: always
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
|
||||
- name: executable
|
||||
pull: always
|
||||
image: golang:1.17
|
||||
commands:
|
||||
- commands:
|
||||
- ./release/linux/arm/gorush --help
|
||||
|
||||
- name: publish
|
||||
image: golang:1.18
|
||||
name: executable
|
||||
pull: always
|
||||
- image: plugins/docker:linux-arm
|
||||
name: publish
|
||||
pull: always
|
||||
image: plugins/docker:linux-arm
|
||||
settings:
|
||||
auto_tag: true
|
||||
auto_tag_suffix: linux-arm
|
||||
cache_from: appleboy/gorush
|
||||
daemon_off: false
|
||||
daemon_off: "false"
|
||||
dockerfile: docker/Dockerfile.linux.arm
|
||||
password:
|
||||
from_secret: docker_password
|
||||
|
@ -259,37 +206,31 @@ steps:
|
|||
event:
|
||||
exclude:
|
||||
- pull_request
|
||||
|
||||
trigger:
|
||||
ref:
|
||||
- refs/heads/master
|
||||
- refs/pull/**
|
||||
- refs/tags/**
|
||||
|
||||
---
|
||||
depends_on:
|
||||
- testing
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
name: release-binary
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: amd64
|
||||
|
||||
os: linux
|
||||
steps:
|
||||
- name: build-all-binary
|
||||
pull: always
|
||||
image: golang:1.17
|
||||
commands:
|
||||
- commands:
|
||||
- make release
|
||||
image: golang:1.18
|
||||
name: build-all-binary
|
||||
pull: always
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
|
||||
- name: deploy-all-binary
|
||||
- image: plugins/github-release
|
||||
name: deploy-all-binary
|
||||
pull: always
|
||||
image: plugins/github-release
|
||||
settings:
|
||||
api_key:
|
||||
from_secret: github_release_api_key
|
||||
|
@ -298,26 +239,24 @@ steps:
|
|||
when:
|
||||
event:
|
||||
- tag
|
||||
|
||||
trigger:
|
||||
ref:
|
||||
- refs/tags/**
|
||||
|
||||
depends_on:
|
||||
- testing
|
||||
|
||||
---
|
||||
depends_on:
|
||||
- linux-amd64
|
||||
- linux-arm64
|
||||
- linux-arm
|
||||
- release-binary
|
||||
kind: pipeline
|
||||
name: notifications
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: amd64
|
||||
|
||||
os: linux
|
||||
steps:
|
||||
- name: manifest
|
||||
- image: plugins/manifest
|
||||
name: manifest
|
||||
pull: always
|
||||
image: plugins/manifest
|
||||
settings:
|
||||
ignore_missing: true
|
||||
password:
|
||||
|
@ -325,16 +264,7 @@ steps:
|
|||
spec: docker/manifest.tmpl
|
||||
username:
|
||||
from_secret: docker_username
|
||||
|
||||
trigger:
|
||||
ref:
|
||||
- refs/heads/master
|
||||
- refs/tags/**
|
||||
|
||||
depends_on:
|
||||
- linux-amd64
|
||||
- linux-arm64
|
||||
- linux-arm
|
||||
- release-binary
|
||||
|
||||
...
|
||||
|
|
105
go.mod
105
go.mod
|
@ -7,102 +7,101 @@ require (
|
|||
github.com/appleboy/gin-status-api v1.1.0
|
||||
github.com/appleboy/go-fcm v0.1.5
|
||||
github.com/appleboy/gofight/v2 v2.1.2
|
||||
github.com/appleboy/graceful v0.0.3
|
||||
github.com/appleboy/graceful v0.0.4
|
||||
github.com/asdine/storm/v3 v3.2.1
|
||||
github.com/buger/jsonparser v1.1.1
|
||||
github.com/dgraph-io/badger/v3 v3.2103.1
|
||||
github.com/gin-contrib/logger v0.2.0
|
||||
github.com/gin-gonic/gin v1.8.0
|
||||
github.com/dgraph-io/badger/v3 v3.2103.2
|
||||
github.com/gin-contrib/logger v0.2.2
|
||||
github.com/gin-gonic/gin v1.8.1
|
||||
github.com/go-redis/redis/v8 v8.11.5
|
||||
github.com/golang-queue/nats v0.0.7
|
||||
github.com/golang-queue/nsq v0.1.0
|
||||
github.com/golang-queue/queue v0.1.1
|
||||
github.com/golang-queue/redisdb-stream v0.0.1
|
||||
github.com/golang-queue/nats v0.0.8
|
||||
github.com/golang-queue/nsq v0.1.1
|
||||
github.com/golang-queue/queue v0.1.3
|
||||
github.com/golang-queue/redisdb-stream v0.0.2
|
||||
github.com/golang/protobuf v1.5.2
|
||||
github.com/json-iterator/go v1.1.12
|
||||
github.com/mattn/go-isatty v0.0.14
|
||||
github.com/mitchellh/mapstructure v1.4.1
|
||||
github.com/mitchellh/mapstructure v1.5.0
|
||||
github.com/msalihkarakasli/go-hms-push v0.0.0-20210731212030-00e7b986815b
|
||||
github.com/prometheus/client_golang v1.10.0
|
||||
github.com/rs/zerolog v1.23.0
|
||||
github.com/sideshow/apns2 v0.20.0
|
||||
github.com/prometheus/client_golang v1.12.2
|
||||
github.com/rs/zerolog v1.27.0
|
||||
github.com/sideshow/apns2 v0.23.0
|
||||
github.com/sirupsen/logrus v1.8.1
|
||||
github.com/spf13/viper v1.7.1
|
||||
github.com/stretchr/testify v1.7.1
|
||||
github.com/spf13/viper v1.12.0
|
||||
github.com/stretchr/testify v1.7.5
|
||||
github.com/syndtr/goleveldb v1.0.0
|
||||
github.com/thoas/stats v0.0.0-20190407194641-965cb2de1678
|
||||
github.com/tidwall/buntdb v1.2.0
|
||||
go.uber.org/atomic v1.5.0
|
||||
golang.org/x/crypto v0.0.0-20220112180741-5e0467b6c7ce
|
||||
golang.org/x/net v0.0.0-20220526153639-5463443f8c37
|
||||
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
|
||||
google.golang.org/grpc v1.36.1
|
||||
github.com/tidwall/buntdb v1.2.9
|
||||
go.uber.org/atomic v1.9.0
|
||||
golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d
|
||||
golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e
|
||||
golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f
|
||||
google.golang.org/grpc v1.47.0
|
||||
google.golang.org/protobuf v1.28.0
|
||||
)
|
||||
|
||||
require (
|
||||
github.com/aws/aws-lambda-go v1.17.0 // indirect
|
||||
github.com/aws/aws-lambda-go v1.32.1 // indirect
|
||||
github.com/beorn7/perks v1.0.1 // indirect
|
||||
github.com/cespare/xxhash v1.1.0 // indirect
|
||||
github.com/cespare/xxhash/v2 v2.1.2 // indirect
|
||||
github.com/davecgh/go-spew v1.1.1 // indirect
|
||||
github.com/dgraph-io/ristretto v0.1.0 // indirect
|
||||
github.com/dgrijalva/jwt-go v3.2.0+incompatible // indirect
|
||||
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
|
||||
github.com/dustin/go-humanize v1.0.0 // indirect
|
||||
github.com/fsnotify/fsnotify v1.4.9 // indirect
|
||||
github.com/fsnotify/fsnotify v1.5.4 // indirect
|
||||
github.com/fukata/golang-stats-api-handler v1.0.0 // indirect
|
||||
github.com/gin-contrib/sse v0.1.0 // indirect
|
||||
github.com/go-playground/locales v0.14.0 // indirect
|
||||
github.com/go-playground/universal-translator v0.18.0 // indirect
|
||||
github.com/go-playground/validator/v10 v10.10.0 // indirect
|
||||
github.com/goccy/go-json v0.9.7 // indirect
|
||||
github.com/go-playground/validator/v10 v10.11.0 // indirect
|
||||
github.com/goccy/go-json v0.9.8 // indirect
|
||||
github.com/gogo/protobuf v1.3.2 // indirect
|
||||
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b // indirect
|
||||
github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6 // indirect
|
||||
github.com/golang/snappy v0.0.3 // indirect
|
||||
github.com/google/flatbuffers v1.12.0 // indirect
|
||||
github.com/golang-jwt/jwt/v4 v4.4.2 // indirect
|
||||
github.com/golang/glog v1.0.0 // indirect
|
||||
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
|
||||
github.com/golang/snappy v0.0.4 // indirect
|
||||
github.com/google/flatbuffers v2.0.6+incompatible // indirect
|
||||
github.com/hashicorp/hcl v1.0.0 // indirect
|
||||
github.com/klauspost/compress v1.12.3 // indirect
|
||||
github.com/klauspost/compress v1.15.7 // indirect
|
||||
github.com/leodido/go-urn v1.2.1 // indirect
|
||||
github.com/magiconair/properties v1.8.1 // indirect
|
||||
github.com/magiconair/properties v1.8.6 // indirect
|
||||
github.com/mattn/go-colorable v0.1.12 // indirect
|
||||
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
|
||||
github.com/minio/highwayhash v1.0.2 // indirect
|
||||
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
|
||||
github.com/modern-go/reflect2 v1.0.2 // indirect
|
||||
github.com/nats-io/jwt/v2 v2.2.0 // indirect
|
||||
github.com/nats-io/nats.go v1.13.1-0.20220308171302-2f2f6968e98d // indirect
|
||||
github.com/nats-io/nats.go v1.16.0 // indirect
|
||||
github.com/nats-io/nkeys v0.3.0 // indirect
|
||||
github.com/nats-io/nuid v1.0.1 // indirect
|
||||
github.com/nsqio/go-nsq v1.1.0 // indirect
|
||||
github.com/pelletier/go-toml v1.2.0 // indirect
|
||||
github.com/pelletier/go-toml/v2 v2.0.1 // indirect
|
||||
github.com/pelletier/go-toml v1.9.5 // indirect
|
||||
github.com/pelletier/go-toml/v2 v2.0.2 // indirect
|
||||
github.com/pkg/errors v0.9.1 // indirect
|
||||
github.com/pmezard/go-difflib v1.0.0 // indirect
|
||||
github.com/prometheus/client_model v0.2.0 // indirect
|
||||
github.com/prometheus/common v0.18.0 // indirect
|
||||
github.com/prometheus/procfs v0.6.0 // indirect
|
||||
github.com/spf13/afero v1.1.2 // indirect
|
||||
github.com/spf13/cast v1.3.0 // indirect
|
||||
github.com/spf13/jwalterweatherman v1.0.0 // indirect
|
||||
github.com/spf13/pflag v1.0.3 // indirect
|
||||
github.com/subosito/gotenv v1.2.0 // indirect
|
||||
github.com/tidwall/btree v0.3.0 // indirect
|
||||
github.com/tidwall/gjson v1.6.8 // indirect
|
||||
github.com/tidwall/grect v0.1.0 // indirect
|
||||
github.com/tidwall/match v1.0.3 // indirect
|
||||
github.com/tidwall/pretty v1.0.2 // indirect
|
||||
github.com/prometheus/common v0.35.0 // indirect
|
||||
github.com/prometheus/procfs v0.7.3 // indirect
|
||||
github.com/spf13/afero v1.8.2 // indirect
|
||||
github.com/spf13/cast v1.5.0 // indirect
|
||||
github.com/spf13/jwalterweatherman v1.1.0 // indirect
|
||||
github.com/spf13/pflag v1.0.5 // indirect
|
||||
github.com/subosito/gotenv v1.4.0 // indirect
|
||||
github.com/tidwall/btree v1.3.1 // indirect
|
||||
github.com/tidwall/gjson v1.14.1 // indirect
|
||||
github.com/tidwall/grect v0.1.4 // indirect
|
||||
github.com/tidwall/match v1.1.1 // indirect
|
||||
github.com/tidwall/pretty v1.2.0 // indirect
|
||||
github.com/tidwall/rtred v0.1.2 // indirect
|
||||
github.com/tidwall/tinyqueue v0.1.1 // indirect
|
||||
github.com/ugorji/go/codec v1.2.7 // indirect
|
||||
go.etcd.io/bbolt v1.3.4 // indirect
|
||||
go.opencensus.io v0.22.5 // indirect
|
||||
golang.org/x/lint v0.0.0-20190930215403-16217165b5de // indirect
|
||||
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a // indirect
|
||||
go.etcd.io/bbolt v1.3.6 // indirect
|
||||
go.opencensus.io v0.23.0 // indirect
|
||||
golang.org/x/sys v0.0.0-20220627191245-f75cf1eec38b // indirect
|
||||
golang.org/x/text v0.3.7 // indirect
|
||||
golang.org/x/tools v0.1.0 // indirect
|
||||
google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013 // indirect
|
||||
gopkg.in/ini.v1 v1.51.0 // indirect
|
||||
google.golang.org/genproto v0.0.0-20220628213854-d9e0b6570c03 // indirect
|
||||
gopkg.in/ini.v1 v1.66.6 // indirect
|
||||
gopkg.in/yaml.v2 v2.4.0 // indirect
|
||||
gopkg.in/yaml.v3 v3.0.1 // indirect
|
||||
)
|
||||
|
|
|
@ -7,23 +7,23 @@
|
|||
arch: 'amd64',
|
||||
},
|
||||
steps: [
|
||||
{
|
||||
name: 'lint',
|
||||
image: 'golangci/golangci-lint:v1.41.1',
|
||||
pull: 'always',
|
||||
commands: [
|
||||
'golangci-lint run -v',
|
||||
],
|
||||
volumes: [
|
||||
{
|
||||
name: 'gopath',
|
||||
path: '/go',
|
||||
},
|
||||
],
|
||||
},
|
||||
// {
|
||||
// name: 'lint',
|
||||
// image: 'golangci/golangci-lint:v1.46.2',
|
||||
// pull: 'always',
|
||||
// commands: [
|
||||
// 'golangci-lint run -v',
|
||||
// ],
|
||||
// volumes: [
|
||||
// {
|
||||
// name: 'gopath',
|
||||
// path: '/go',
|
||||
// },
|
||||
// ],
|
||||
// },
|
||||
{
|
||||
name: 'embedmd',
|
||||
image: 'golang:1.17',
|
||||
image: 'golang:1.18',
|
||||
pull: 'always',
|
||||
commands: [
|
||||
'make embedmd',
|
||||
|
@ -52,32 +52,32 @@
|
|||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'test',
|
||||
image: 'golang:1.17',
|
||||
pull: 'always',
|
||||
environment: {
|
||||
ANDROID_API_KEY: { 'from_secret': 'android_api_key' },
|
||||
ANDROID_TEST_TOKEN: { 'from_secret': 'android_test_token' },
|
||||
},
|
||||
commands: [
|
||||
'make test',
|
||||
],
|
||||
volumes: [
|
||||
{
|
||||
name: 'gopath',
|
||||
path: '/go',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'codecov',
|
||||
image: 'robertstettner/drone-codecov',
|
||||
pull: 'always',
|
||||
settings: {
|
||||
token: { 'from_secret': 'codecov_token' },
|
||||
},
|
||||
},
|
||||
// {
|
||||
// name: 'test',
|
||||
// image: 'golang:1.18',
|
||||
// pull: 'always',
|
||||
// environment: {
|
||||
// ANDROID_API_KEY: { 'from_secret': 'android_api_key' },
|
||||
// ANDROID_TEST_TOKEN: { 'from_secret': 'android_test_token' },
|
||||
// },
|
||||
// commands: [
|
||||
// 'make test',
|
||||
// ],
|
||||
// volumes: [
|
||||
// {
|
||||
// name: 'gopath',
|
||||
// path: '/go',
|
||||
// },
|
||||
// ],
|
||||
// },
|
||||
// {
|
||||
// name: 'codecov',
|
||||
// image: 'robertstettner/drone-codecov',
|
||||
// pull: 'always',
|
||||
// settings: {
|
||||
// token: { 'from_secret': 'codecov_token' },
|
||||
// },
|
||||
// },
|
||||
],
|
||||
volumes: [
|
||||
{
|
||||
|
@ -110,7 +110,7 @@
|
|||
steps: [
|
||||
{
|
||||
name: 'build-push',
|
||||
image: 'golang:1.17',
|
||||
image: 'golang:1.18',
|
||||
pull: 'always',
|
||||
environment: {
|
||||
CGO_ENABLED: '0',
|
||||
|
@ -126,7 +126,7 @@
|
|||
},
|
||||
// {
|
||||
// name: 'build-push-lambda',
|
||||
// image: 'golang:1.17',
|
||||
// image: 'golang:1.18',
|
||||
// pull: 'always',
|
||||
// environment: {
|
||||
// CGO_ENABLED: '0',
|
||||
|
@ -142,7 +142,7 @@
|
|||
// },
|
||||
{
|
||||
name: 'build-tag',
|
||||
image: 'golang:1.17',
|
||||
image: 'golang:1.18',
|
||||
pull: 'always',
|
||||
environment: {
|
||||
CGO_ENABLED: '0',
|
||||
|
@ -156,7 +156,7 @@
|
|||
},
|
||||
{
|
||||
name: 'executable',
|
||||
image: 'golang:1.17',
|
||||
image: 'golang:1.18',
|
||||
pull: 'always',
|
||||
commands: [
|
||||
'./release/' + os + '/' + arch + '/' + name + ' --help',
|
||||
|
@ -205,7 +205,7 @@
|
|||
steps: [
|
||||
{
|
||||
name: 'build-all-binary',
|
||||
image: 'golang:1.17',
|
||||
image: 'golang:1.18',
|
||||
pull: 'always',
|
||||
commands: [
|
||||
'make release'
|
||||
|
|
Loading…
Reference in New Issue