Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.

Commit 3654bcd

Browse files
authored
GoReleaser 1.8.3 (#111)
Co-authored-by: CrazyMax <[email protected]>
1 parent 03ec40a commit 3654bcd

File tree

24 files changed

+131
-81
lines changed

24 files changed

+131
-81
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker/dockerfile:1
22

3-
ARG GORELEASER_VERSION="1.7.0"
3+
ARG GORELEASER_VERSION="1.8.3"
44
ARG XX_VERSION="1.1.0"
55
ARG GO_VERSION="1.18"
66

README.md

Lines changed: 27 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,15 @@ $ docker run --rm mplatform/mquery crazymax/goreleaser-xx:latest
6969
Image: crazymax/goreleaser-xx:latest (digest: sha256:c65c481c014abab6d307b190ddf1fcb229a44b6c1845d2f2a53bd06dc0437cd7)
7070
* Manifest List: Yes (Image type: application/vnd.docker.distribution.manifest.list.v2+json)
7171
* Supported platforms:
72+
- linux/386
7273
- linux/amd64
74+
- linux/arm/v5
7375
- linux/arm/v6
7476
- linux/arm/v7
7577
- linux/arm64
76-
- linux/386
78+
- linux/ppc64le
79+
- linux/riscv64
80+
- linux/s390x
7781
```
7882

7983
## CLI
@@ -82,29 +86,29 @@ Image: crazymax/goreleaser-xx:latest (digest: sha256:c65c481c014abab6d307b190ddf
8286
docker run --rm -t crazymax/goreleaser-xx:latest goreleaser-xx --help
8387
```
8488

85-
| Flag | Env var | Description |
86-
|----------------------|-------------------------------|---------------|
87-
| `--debug` | `DEBUG` | Enable debug (default `false`) |
88-
| `--git-ref` | `GIT_REF` | The branch or tag like `refs/tags/v1.0.0` (default to your working tree info) |
89-
| `--goreleaser` | `GORELEASER_PATH` | Set a specific GoReleaser binary to use (default `goreleaser`) |
90-
| `--config` | `GORELEASER_CONFIG` | Load GoReleaser configuration from file |
91-
| `--go-binary` | `GORELEASER_GOBINARY` | Set a specific go binary to use when building (default `go`) |
92-
| `--name` | `GORELEASER_NAME` | Project name |
93-
| `--dist` | `GORELEASER_DIST` | Dist folder where artifact will be stored |
94-
| `--artifacts` | `GORELEASER_ARTIFACTS` | Types of artifact to create (`archive`, `bin`) (default `archive`) |
95-
| `--main` | `GORELEASER_MAIN` | Path to main.go file or main package (default `.`) |
96-
| `--flags` | `GORELEASER_FLAGS` | Custom flags templates |
97-
| `--asmflags` | `GORELEASER_ASMFLAGS` | Custom asmflags templates |
98-
| `--gcflags` | `GORELEASER_GCFLAGS` | Custom gcflags templates |
99-
| `--ldflags` | `GORELEASER_LDFLAGS` | Custom ldflags templates |
100-
| `--tags` | `GORELEASER_TAGS` | Custom build tags templates |
89+
| Flag | Env var | Description |
90+
|----------------------|-------------------------------|-----------------------------------------------------------------------------------------------------------------|
91+
| `--debug` | `DEBUG` | Enable debug (default `false`) |
92+
| `--git-ref` | `GIT_REF` | The branch or tag like `refs/tags/v1.0.0` (default to your working tree info) |
93+
| `--goreleaser` | `GORELEASER_PATH` | Set a specific GoReleaser binary to use (default `goreleaser`) |
94+
| `--config` | `GORELEASER_CONFIG` | Load GoReleaser configuration from file |
95+
| `--go-binary` | `GORELEASER_GOBINARY` | Set a specific go binary to use when building (default `go`) |
96+
| `--name` | `GORELEASER_NAME` | Project name |
97+
| `--dist` | `GORELEASER_DIST` | Dist folder where artifact will be stored |
98+
| `--artifacts` | `GORELEASER_ARTIFACTS` | Types of artifact to create (`archive`, `bin`) (default `archive`) |
99+
| `--main` | `GORELEASER_MAIN` | Path to main.go file or main package (default `.`) |
100+
| `--flags` | `GORELEASER_FLAGS` | Custom flags templates |
101+
| `--asmflags` | `GORELEASER_ASMFLAGS` | Custom asmflags templates |
102+
| `--gcflags` | `GORELEASER_GCFLAGS` | Custom gcflags templates |
103+
| `--ldflags` | `GORELEASER_LDFLAGS` | Custom ldflags templates |
104+
| `--tags` | `GORELEASER_TAGS` | Custom build tags templates |
101105
| `--files` | `GORELEASER_FILES` | Additional files/template/globs you want to add to the [archive](https://goreleaser.com/customization/archive/) |
102-
| `--replacements` | `GORELEASER_REPLACEMENTS` | Replacements for `GOOS` and `GOARCH` in the archive/binary name |
103-
| `--envs` | `GORELEASER_ENVS` | Custom environment variables to be set during the build |
104-
| `--pre-hooks` | `GORELEASER_PRE_HOOKS` | [Hooks](https://goreleaser.com/customization/build/#build-hooks) which will be executed before the build |
105-
| `--post-hooks` | `GORELEASER_POST_HOOKS` | [Hooks](https://goreleaser.com/customization/build/#build-hooks) which will be executed after the build |
106-
| `--snapshot` | `GORELEASER_SNAPSHOT` | Run in [snapshot](https://goreleaser.com/customization/snapshots/) mode |
107-
| `--checksum` | `GORELEASER_CHECKSUM` | Create checksum (default `true`) |
106+
| `--replacements` | `GORELEASER_REPLACEMENTS` | Replacements for `GOOS` and `GOARCH` in the archive/binary name |
107+
| `--envs` | `GORELEASER_ENVS` | Custom environment variables to be set during the build |
108+
| `--pre-hooks` | `GORELEASER_PRE_HOOKS` | [Hooks](https://goreleaser.com/customization/build/#build-hooks) which will be executed before the build |
109+
| `--post-hooks` | `GORELEASER_POST_HOOKS` | [Hooks](https://goreleaser.com/customization/build/#build-hooks) which will be executed after the build |
110+
| `--snapshot` | `GORELEASER_SNAPSHOT` | Run in [snapshot](https://goreleaser.com/customization/snapshots/) mode |
111+
| `--checksum` | `GORELEASER_CHECKSUM` | Create checksum (default `true`) |
108112

109113
## Usage
110114

demo/c-goxx/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker/dockerfile:1
22

3-
ARG GO_VERSION="1.17"
3+
ARG GO_VERSION="1.18"
44
ARG GORELEASER_XX_BASE="crazymax/goreleaser-xx:edge"
55

66
FROM --platform=$BUILDPLATFORM ${GORELEASER_XX_BASE} AS goreleaser-xx

demo/c-goxx/docker-bake.hcl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ target "image-all" {
2626
inherits = ["image"]
2727
platforms = [
2828
"linux/amd64",
29+
"linux/amd64/v2",
2930
"linux/arm/v6",
3031
"linux/arm/v7",
3132
"linux/arm64",
@@ -48,6 +49,7 @@ target "artifact-all" {
4849
"darwin/arm64",
4950
"linux/386",
5051
"linux/amd64",
52+
"linux/amd64/v2",
5153
"linux/arm/v6",
5254
"linux/arm/v7",
5355
"linux/arm64",

demo/cpp-goxx/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker/dockerfile:1
22

3-
ARG GO_VERSION=1.17
3+
ARG GO_VERSION=1.18
44
ARG GORELEASER_XX_BASE=crazymax/goreleaser-xx:edge
55

66
FROM --platform=$BUILDPLATFORM ${GORELEASER_XX_BASE} AS goreleaser-xx

demo/cpp-goxx/docker-bake.hcl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ target "image-all" {
2626
inherits = ["image"]
2727
platforms = [
2828
"linux/amd64",
29+
"linux/amd64/v2",
2930
"linux/arm/v6",
3031
"linux/arm/v7",
3132
"linux/arm64",
@@ -47,6 +48,7 @@ target "artifact-all" {
4748
"darwin/amd64",
4849
"darwin/arm64",
4950
"linux/amd64",
51+
"linux/amd64/v2",
5052
"linux/arm/v6",
5153
"linux/arm/v7",
5254
"linux/arm64",

demo/cpp-nummer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker/dockerfile:1
22

3-
ARG GO_VERSION=1.17
3+
ARG GO_VERSION=1.18
44
ARG GORELEASER_XX_BASE=crazymax/goreleaser-xx:edge
55

66
FROM --platform=$BUILDPLATFORM ${GORELEASER_XX_BASE} AS goreleaser-xx

demo/cpp-nummer/docker-bake.hcl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ target "image-all" {
2626
inherits = ["image"]
2727
platforms = [
2828
"linux/amd64",
29+
"linux/amd64/v2",
2930
"linux/arm/v6",
3031
"linux/arm/v7",
3132
"linux/arm64",
@@ -47,6 +48,7 @@ target "artifact-all" {
4748
"darwin/amd64",
4849
"darwin/arm64",
4950
"linux/amd64",
51+
"linux/amd64/v2",
5052
"linux/arm/v6",
5153
"linux/arm/v7",
5254
"linux/arm64",

demo/echo-webapp/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker/dockerfile:1
22

3-
ARG GO_VERSION=1.17
3+
ARG GO_VERSION=1.18
44
ARG GORELEASER_XX_BASE=crazymax/goreleaser-xx:edge
55

66
FROM --platform=$BUILDPLATFORM ${GORELEASER_XX_BASE} AS goreleaser-xx

demo/echo-webapp/docker-bake.hcl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ target "image-all" {
2626
inherits = ["image"]
2727
platforms = [
2828
"linux/amd64",
29+
"linux/amd64/v2",
2930
"linux/arm/v6",
3031
"linux/arm/v7",
3132
"linux/arm64",
@@ -47,6 +48,7 @@ target "artifact-all" {
4748
"darwin/arm64",
4849
"freebsd/amd64",
4950
"linux/amd64",
51+
"linux/amd64/v2",
5052
"linux/arm/v5",
5153
"linux/arm/v6",
5254
"linux/arm/v7",

0 commit comments

Comments
 (0)