Skip to content

Commit

Permalink
Alpine images
Browse files Browse the repository at this point in the history
  • Loading branch information
v-byte-cpu committed Apr 4, 2021
1 parent da9e2a2 commit 76e8fb7
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,19 @@ clone:

steps:
- name: lint
image: golangci/golangci-lint:v1.39
image: golangci/golangci-lint:v1.39.0-alpine
commands:
- apt-get update
- apt-get install -y libpcap-dev
- apk add libpcap-dev libc-dev linux-headers
- golangci-lint run -v
# go 1.16 install doesn't modify go.mod and go.sum
- go install github.com/mgechev/revive@v1.0.3
- revive -config .revive.toml -formatter friendly ./...

- name: test
image: golang:1.16
- name: test & build
image: golang:1.16-alpine
commands:
- apt-get update
- apt-get install -y libpcap-dev
- apk add libpcap-dev libc-dev gcc linux-headers
- go test ./... -v -cover

- name: build
image: golang:1.16
commands:
- apt-get update
- apt-get install -y libpcap-dev
- go build -ldflags "-w -s"

trigger:
Expand Down

0 comments on commit 76e8fb7

Please sign in to comment.