Skip to content
This repository was archived by the owner on Feb 11, 2025. It is now read-only.

Commit

Permalink
Merge release v1.1 (#125)
Browse files Browse the repository at this point in the history
* Upgrade go 1.14.2

* Update README

* Make archive names uname compatible

* Build docker image for multiple arch/os

* Upgrade go 1.14.4

Signed-off-by: Kemal Akkoyun <[email protected]>
  • Loading branch information
kakkoyun authored Jun 11, 2020
1 parent 1fe5304 commit 08699c2
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 30 deletions.
6 changes: 3 additions & 3 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,23 @@ steps:
- mc mb --region=eu-west-1 minio/drone-cache-bucket

- name: build
image: golang:1.14.1-alpine3.11
image: golang:1.14.4-alpine3.12
commands:
- apk add --update make git
- make drone-cache
environment:
CGO_ENABLED: 0

- name: lint
image: golang:1.14.1-alpine3.11
image: golang:1.14.4-alpine3.12
commands:
- apk add --update make git curl
- make lint
environment:
CGO_ENABLED: 0

- name: test
image: golang:1.14.1-alpine3.11
image: golang:1.14.4-alpine3.12
commands:
- go test -mod=vendor -short -cover -tags=integration ./...
environment:
Expand Down
31 changes: 16 additions & 15 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ builds:
goarm:
- 6
- 7
ignore:
- goos: darwin
goarch: 386
env:
- CGO_ENABLED=0
flags:
Expand All @@ -33,9 +36,6 @@ builds:
-X main.Version={{.Version}}
-X main.Commit={{.ShortCommit}}
-X main.Date={{.Date}}
ignore:
- goos: darwin
goarch: 386
hooks:
# Ignores failures, this is just best effort. Alternative: find target/dist -name drone-cache -type f -exec upx {} +
post: find target/dist -name drone-cache -type f -print0 | xargs -n 1 -0 upx
Expand All @@ -48,17 +48,18 @@ archives:
format: zip
wrap_in_directory: true
replacements:
amd64: 64bit
386: 32bit
arm: ARM
arm64: ARM64
darwin: macOS
linux: linux
windows: windows
openbsd: openBSD
netbsd: netBSD
freebsd: freeBSD
dragonfly: dragonFlyBSD
# https://en.wikipedia.org/wiki/Uname
# uname -m compatible.
amd64: x86_64
386: i386
# uname -s compatible.
darwin: Darwin
linux: Linux
windows: Windows
openbsd: OpenBSD
netbsd: NetBSD
freebsd: FreeBSD
dragonfly: DragonFly
files:
- README.md
- CHANGELOG.md
Expand Down Expand Up @@ -99,7 +100,7 @@ dockers:
# .Arch GOARCH (usually allow replacements)
# .Arm GOARM (usually allow replacements)
# .Mips GOMIPS (usually allow replacements)
# TODO: Add more mirror registries
# TODO: Add github docker repo
# - "docker.pkg.github.com/meltwater/drone-cache/drone-cache:latest"
# - "docker.pkg.github.com/meltwater/drone-cache/drone-cache:{{ .Tag }}"
# - "docker.pkg.github.com/meltwater/drone-cache/drone-cache:v{{ .Major }}.{{ .Minor }}"
Expand Down
10 changes: 5 additions & 5 deletions DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ steps:
- 'vendor'

- name: build
image: golang:1.14.1-alpine3.11
image: golang:1.14.4-alpine3.12
pull: true
commands:
- apk add --update make git
Expand Down Expand Up @@ -160,7 +160,7 @@ steps:
path: /tmp/cache

- name: build
image: golang:1.14.1-alpine3.11
image: golang:1.14.4-alpine3.12
pull: true
commands:
- apk add --update make git
Expand Down Expand Up @@ -212,7 +212,7 @@ steps:
- 'vendor'

- name: build
image: golang:1.14.1-alpine3.11
image: golang:1.14.4-alpine3.12
pull: true
commands:
- apk add --update make git
Expand Down Expand Up @@ -261,7 +261,7 @@ steps:
- 'vendor'

- name: build
image: golang:1.14.1-alpine3.11
image: golang:1.14.4-alpine3.12
pull: true
commands:
- apk add --update make git
Expand Down Expand Up @@ -300,7 +300,7 @@ steps:
debug: true

- name: build
image: golang:1.14.1-alpine3.11
image: golang:1.14.4-alpine3.12
pull: true
commands:
- apk add --update make git
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This file is designed to only used by goreleaser.
FROM golang:1.14.1-alpine3.11 AS builder
FROM golang:1.14.4-alpine3.12 AS builder
RUN apk add --update --no-cache ca-certificates tzdata && update-ca-certificates

FROM scratch as runner
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ steps:
- 'vendor'

- name: build
image: golang:1.14.1-alpine3.11
image: golang:1.14.4-alpine3.12
pull: true
commands:
- apk add --update make git
Expand Down
10 changes: 5 additions & 5 deletions docs/examples/drone.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ steps:
- 'vendor'

- name: build
image: golang:1.14.1-alpine3.11
image: golang:1.14.4-alpine3.12
pull: true
commands:
- apk add --update make git
Expand Down Expand Up @@ -74,7 +74,7 @@ steps:
path: /tmp/cache

- name: build
image: golang:1.14.1-alpine3.11
image: golang:1.14.4-alpine3.12
pull: true
commands:
- apk add --update make git
Expand Down Expand Up @@ -127,7 +127,7 @@ steps:
- 'vendor'

- name: build
image: golang:1.14.1-alpine3.11
image: golang:1.14.4-alpine3.12
pull: true
commands:
- apk add --update make git
Expand Down Expand Up @@ -175,7 +175,7 @@ steps:
- 'vendor'

- name: build
image: golang:1.14.1-alpine3.11
image: golang:1.14.4-alpine3.12
pull: true
commands:
- apk add --update make git
Expand Down Expand Up @@ -214,7 +214,7 @@ steps:
debug: true

- name: build
image: golang:1.14.1-alpine3.11
image: golang:1.14.4-alpine3.12
pull: true
commands:
- apk add --update make git
Expand Down

0 comments on commit 08699c2

Please sign in to comment.