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