Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 41 additions & 25 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,21 +98,6 @@ steps:
depends_on:
- start

- name: build-binaries
image: "golang:1.17"
pull: always
environment:
GO111MODULE: on
LOG_LEVEL: "info"
commands:
- make build-binaries
when:
event:
- pull_request
- push
- tag
depends_on:
- start

- name: test-docker-build
image: plugins/docker
Expand All @@ -139,11 +124,11 @@ steps:
- start

- name: lint
image: golangci/golangci-lint@sha256:39e13a431c69fca37f88ab4b2340655eef7d7d18373df10d5e737f0b77866747
image: golangci/golangci-lint:v1.42.1-alpine
pull: always
commands:
- apk add --update make
- make lint
- golangci-lint run --tests=false --exclude-use-default
- golangci-lint run -D=errcheck --exclude-use-default
when:
event:
- pull_request
Expand All @@ -158,22 +143,17 @@ steps:
environment:
GO111MODULE: on
LOG_LEVEL: "info"
COVERALLS_TOKEN:
from_secret: coveralls-token
commands:
- sleep 5
- sleep 15
- make checks
- make test
# coveralls seems to have issues right now
# https://github.com/lemurheavy/coveralls-public/issues/1573
# - make upload-coverage
when:
event:
- pull_request
- push
- tag
depends_on:
- build-binaries
- start


- name: mixins
Expand Down Expand Up @@ -207,6 +187,42 @@ steps:
- tests


- name: upload-coveralls
image: "golang:1.17"
pull: always
environment:
GO111MODULE: on
LOG_LEVEL: "info"
COVERALLS_TOKEN:
from_secret: coveralls-token
commands:
- make upload-coverage
when:
event:
- pull_request
- push
- tag
depends_on:
- tests


- name: build-binaries
image: "golang:1.17"
pull: always
environment:
GO111MODULE: on
LOG_LEVEL: "info"
commands:
- make build-binaries
when:
event:
- pull_request
- push
- tag
depends_on:
- tests


- name: release-docker-image-scratch
image: plugins/docker
settings:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ mixin:

.PHONY: upload-coverage
upload-coverage:
go install github.com/mattn/goveralls@v0.0.9
go install github.com/mattn/goveralls@v0.0.11
/go/bin/goveralls -coverprofile=coverage.txt -service=drone.io


Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.arm64
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ RUN [ $GOARCH = "amd64" ] && /redis_exporter -version || ls -la /redis_exporter
#
# Alpine ARM64 release container
#
FROM arm64v8/alpine:3.6 as alpine-arm64
FROM arm64v8/alpine:3.14 as alpine-arm64

COPY --from=builder /redis_exporter /redis_exporter
COPY --from=builder /etc/ssl/certs /etc/ssl/certs
Expand Down