Skip to content

Commit 6a6755f

Browse files
committed
testcommit
1 parent 7fb0c1b commit 6a6755f

File tree

2 files changed

+68
-68
lines changed

2 files changed

+68
-68
lines changed

.goreleaser.yaml

+67-67
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,15 @@ builds:
5757
# - v2
5858
# - v3
5959

60-
# dockers:
60+
dockers:
6161
# You can declare multiple Docker images.
6262
# They will be matched against the binaries generated by your builds section
6363
# and packages generated by your nfpms section.
6464

6565
# Templates of the Docker image names.
6666
# if prefix URL, docker img will push.
67-
# - image_templates:
68-
# - "brothersam/guanceexample:{{ .Version }}-amd64"
67+
- image_templates:
68+
- "brothersam/guanceexample:{{ .Version }}-amd64"
6969
# - "gcr.io/brothersam/guanceexample:{{ .Version }}"
7070
# - "brothersam/guanceexample:{{ .Version }}"
7171

@@ -75,71 +75,71 @@ builds:
7575
# GOARCH of the built binaries/packages that should be used.
7676
# goarch: amd64
7777

78-
# # GOAMD64 of the built binaries/packages that should be used.
79-
# # goamd64: 'v2'
80-
81-
# # Skips the docker push.
82-
# # Could be useful if you also do draft releases.
83-
# # If set to auto, the release will not be pushed to the Docker repository
84-
# # in case there is an indicator of a prerelease in the tag, e.g. v1.0.0-rc1.
85-
# # Defaults to false.
86-
# skip_push: false
87-
88-
# # Path to the Dockerfile (from the project root).
89-
# # Defaults to `Dockerfile`.
90-
# dockerfile: Dockerfile
91-
92-
# # Set the "backend" for the Docker pipe.
93-
# # Valid options are: docker, buildx, podman.
94-
# # podman is a GoReleaser Pro feature and is only available on Linux.
95-
# # Defaults to docker.
96-
# use: docker
97-
98-
# # Template of the docker build flags.
99-
# build_flag_templates:
100-
# - --platform=linux/amd64
101-
# - --label=org.opencontainers.image.title={{ .ProjectName }}
102-
# - --label=org.opencontainers.image.description={{ .ProjectName }}
103-
# - --label=org.opencontainers.image.url=https://github.com/brothersam66/testgoreleaser
104-
# - --label=org.opencontainers.image.source=https://github.com/brothersam66/testgoreleaser
105-
# - --label=org.opencontainers.image.version={{ .Version }}
106-
# - --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
107-
# - --label=org.opencontainers.image.revision={{ .FullCommit }}
108-
# - --label=org.opencontainers.image.licenses=MIT
109-
110-
# - image_templates:
111-
# - "brothersam/guanceexample:{{ .Version }}-arm64v8"
112-
# # goos: linux
113-
# goarch: arm64
114-
# # goarm: 'v6'
115-
# skip_push: false
116-
# dockerfile: Dockerfile
117-
# use: docker
118-
# build_flag_templates:
119-
# - --platform=linux/arm64/v8
120-
# - --label=org.opencontainers.image.title={{ .ProjectName }}
121-
# - --label=org.opencontainers.image.description={{ .ProjectName }}
122-
# - --label=org.opencontainers.image.url=https://github.com/brothersam66/testgoreleaser
123-
# - --label=org.opencontainers.image.source=https://github.com/brothersam66/testgoreleaser
124-
# - --label=org.opencontainers.image.version={{ .Version }}
125-
# - --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
126-
# - --label=org.opencontainers.image.revision={{ .FullCommit }}
127-
# - --label=org.opencontainers.image.licenses=MIT
78+
# GOAMD64 of the built binaries/packages that should be used.
79+
# goamd64: 'v2'
80+
81+
# Skips the docker push.
82+
# Could be useful if you also do draft releases.
83+
# If set to auto, the release will not be pushed to the Docker repository
84+
# in case there is an indicator of a prerelease in the tag, e.g. v1.0.0-rc1.
85+
# Defaults to false.
86+
skip_push: false
87+
88+
# Path to the Dockerfile (from the project root).
89+
# Defaults to `Dockerfile`.
90+
dockerfile: Dockerfile
91+
92+
# Set the "backend" for the Docker pipe.
93+
# Valid options are: docker, buildx, podman.
94+
# podman is a GoReleaser Pro feature and is only available on Linux.
95+
# Defaults to docker.
96+
use: docker
97+
98+
# Template of the docker build flags.
99+
build_flag_templates:
100+
- --platform=linux/amd64
101+
- --label=org.opencontainers.image.title={{ .ProjectName }}
102+
- --label=org.opencontainers.image.description={{ .ProjectName }}
103+
- --label=org.opencontainers.image.url=https://github.com/brothersam66/testgoreleaser
104+
- --label=org.opencontainers.image.source=https://github.com/brothersam66/testgoreleaser
105+
- --label=org.opencontainers.image.version={{ .Version }}
106+
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
107+
- --label=org.opencontainers.image.revision={{ .FullCommit }}
108+
- --label=org.opencontainers.image.licenses=MIT
109+
110+
- image_templates:
111+
- "brothersam/guanceexample:{{ .Version }}-arm64v8"
112+
# goos: linux
113+
goarch: arm64
114+
# goarm: 'v6'
115+
skip_push: false
116+
dockerfile: Dockerfile
117+
use: docker
118+
build_flag_templates:
119+
- --platform=linux/arm64/v8
120+
- --label=org.opencontainers.image.title={{ .ProjectName }}
121+
- --label=org.opencontainers.image.description={{ .ProjectName }}
122+
- --label=org.opencontainers.image.url=https://github.com/brothersam66/testgoreleaser
123+
- --label=org.opencontainers.image.source=https://github.com/brothersam66/testgoreleaser
124+
- --label=org.opencontainers.image.version={{ .Version }}
125+
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
126+
- --label=org.opencontainers.image.revision={{ .FullCommit }}
127+
- --label=org.opencontainers.image.licenses=MIT
128128

129-
dockers:
130-
- image_templates:
131-
- "brothersam/guanceexample:{{ .Version }}-amd64"
132-
use: docker
133-
dockerfile: Dockerfile
134-
build_flag_templates:
135-
- "--platform=linux/amd64"
136-
- image_templates:
137-
- "brothersam/guanceexample:{{ .Version }}-arm64v8"
138-
use: docker
139-
goarch: arm64
140-
dockerfile: Dockerfile
141-
build_flag_templates:
142-
- "--platform=linux/arm64/v8"
129+
# dockers:
130+
# - image_templates:
131+
# - "brothersam/guanceexample:{{ .Version }}-amd64"
132+
# use: docker
133+
# dockerfile: Dockerfile
134+
# build_flag_templates:
135+
# - "--platform=linux/amd64"
136+
# - image_templates:
137+
# - "brothersam/guanceexample:{{ .Version }}-arm64v8"
138+
# use: docker
139+
# goarch: arm64
140+
# dockerfile: Dockerfile
141+
# build_flag_templates:
142+
# - "--platform=linux/arm64/v8"
143143

144144
# docker_manifests:
145145
# -

release.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ git commit -m "testcommit"
44
# master: your branch name
55
git push origin master
66
# vXX.XX.XX: your version. your tag
7-
git tag -a v0.3.59 -m "test release"
7+
git tag -a v0.3.60 -m "test release"
88
# release and push to github & docker.io
99
goreleaser release --rm-dist
1010
# only test realase

0 commit comments

Comments
 (0)