Skip to content

Commit aa8713c

Browse files
committed
testactions
1 parent ae0622a commit aa8713c

File tree

2 files changed

+128
-128
lines changed

2 files changed

+128
-128
lines changed

.goreleaser.yaml

+127-127
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ builds:
3333
# Defaults are darwin and linux.
3434
goos:
3535
- linux
36-
# - windows
37-
# - darwin
36+
- windows
37+
- darwin
3838

3939
# GOARCH to build for.
4040
# For more info refer to: https://golang.org/doc/install/source#environment
4141
# Defaults are 386, amd64 and arm64.
4242
goarch:
4343
- amd64
44-
# - arm64
44+
- arm64
4545

4646
# # GOARM to build for when GOARCH is arm.
4747
# # For more info refer to: https://golang.org/doc/install/source#environment
@@ -57,86 +57,86 @@ builds:
5757
# - v2
5858
# - v3
5959

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

65-
# # Templates of the Docker image names.
66-
# # if prefix URL, docker img will push.
67-
# - image_templates:
68-
# - "docker.io/brothersam/guanceexample:{{ .Version }}-amd64"
69-
# # - "gcr.io/brothersam/guanceexample:{{ .Version }}"
70-
# # - "brothersam/guanceexample:{{ .Version }}"
71-
72-
# # GOOS of the built binaries/packages that should be used.
73-
# # goos: linux
74-
75-
# # GOARCH of the built binaries/packages that should be used.
76-
# goarch: amd64
77-
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-
# - "docker.io/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
128-
129-
130-
# # GoReleaser can be wired to nfpm to generate and publish .deb, .rpm and .apk packages.
131-
# nfpms:
132-
# - maintainer: Carlos A Becker <[email protected]>
133-
# description: Sample project.
134-
# homepage: https://github.com/brothersam66/tasktimer
135-
# license: MIT
136-
# formats:
137-
# - deb
138-
# - rpm
139-
# - apk
65+
# Templates of the Docker image names.
66+
# if prefix URL, docker img will push.
67+
- image_templates:
68+
- "docker.io/brothersam/guanceexample:{{ .Version }}-amd64"
69+
# - "gcr.io/brothersam/guanceexample:{{ .Version }}"
70+
# - "brothersam/guanceexample:{{ .Version }}"
71+
72+
# GOOS of the built binaries/packages that should be used.
73+
# goos: linux
74+
75+
# GOARCH of the built binaries/packages that should be used.
76+
goarch: amd64
77+
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+
- "docker.io/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
128+
129+
130+
# GoReleaser can be wired to nfpm to generate and publish .deb, .rpm and .apk packages.
131+
nfpms:
132+
- maintainer: Carlos A Becker <[email protected]>
133+
description: Sample project.
134+
homepage: https://github.com/brothersam66/tasktimer
135+
license: MIT
136+
formats:
137+
- deb
138+
- rpm
139+
- apk
140140

141141

142142
env_files:
@@ -145,49 +145,49 @@ env_files:
145145
# setup ENV github token: $ export GITHUB_TOKEN="YOUR_GH_TOKEN"
146146
github_token: ~/go/src/github.com/github_token
147147

148-
# changelog:
149-
# # Set this to true if you don't want any changelog at all.
150-
# # Warning: this will also ignore any changelog files passed via `--release-notes`,
151-
# # and will render an empty changelog.
152-
# # This may result in an empty release notes on GitHub/GitLab/Gitea.
153-
# skip: false
154-
155-
# # Changelog generation implementation to use.
156-
# #
157-
# # Valid options are:
158-
# # - `git`: uses `git log`;
159-
# # - `github`: uses the compare GitHub API, appending the author login to the changelog.
160-
# # - `gitlab`: uses the compare GitLab API, appending the author name and email to the changelog.
161-
# # - `github-native`: uses the GitHub release notes generation API, disables the groups feature.
162-
# #
163-
# # Defaults to `git`.
164-
# use: github-native
165-
166-
# # Sorts the changelog by the commit's messages.
167-
# # Could either be asc, desc or empty
168-
# # Default is empty
169-
# sort: asc
170-
171-
# # Max commit hash length to use in the changelog.
172-
# #
173-
# # 0: use whatever the changelog implementation gives you
174-
# # -1: remove the commit hash from the changelog
175-
# # any other number: max length.
176-
# #
177-
# # Default: 0.
178-
# abbrev: 0
179-
180-
# # Group commits messages by given regex and title.
181-
# # Order value defines the order of the groups.
182-
# # Proving no regex means all commits will be grouped under the default group.
183-
# # Groups are disabled when using github-native, as it already groups things by itself.
184-
# #
185-
# # Default is no groups.
186-
# filters:
187-
# # Commit messages matching the regexp listed here will be removed from
188-
# # the changelog
189-
# # Default is empty
190-
# exclude:
191-
# - '^docs:'
192-
# - typo
148+
changelog:
149+
# Set this to true if you don't want any changelog at all.
150+
# Warning: this will also ignore any changelog files passed via `--release-notes`,
151+
# and will render an empty changelog.
152+
# This may result in an empty release notes on GitHub/GitLab/Gitea.
153+
skip: false
154+
155+
# Changelog generation implementation to use.
156+
#
157+
# Valid options are:
158+
# - `git`: uses `git log`;
159+
# - `github`: uses the compare GitHub API, appending the author login to the changelog.
160+
# - `gitlab`: uses the compare GitLab API, appending the author name and email to the changelog.
161+
# - `github-native`: uses the GitHub release notes generation API, disables the groups feature.
162+
#
163+
# Defaults to `git`.
164+
use: github-native
165+
166+
# Sorts the changelog by the commit's messages.
167+
# Could either be asc, desc or empty
168+
# Default is empty
169+
sort: asc
170+
171+
# Max commit hash length to use in the changelog.
172+
#
173+
# 0: use whatever the changelog implementation gives you
174+
# -1: remove the commit hash from the changelog
175+
# any other number: max length.
176+
#
177+
# Default: 0.
178+
abbrev: 0
179+
180+
# Group commits messages by given regex and title.
181+
# Order value defines the order of the groups.
182+
# Proving no regex means all commits will be grouped under the default group.
183+
# Groups are disabled when using github-native, as it already groups things by itself.
184+
#
185+
# Default is no groups.
186+
filters:
187+
# Commit messages matching the regexp listed here will be removed from
188+
# the changelog
189+
# Default is empty
190+
exclude:
191+
- '^docs:'
192+
- typo
193193

release.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ git add .
22
# testcommit: your commite message
33
git commit -m "testactions"
44
# vXX.XX.XX: your version. your tag
5-
git tag -a v0.3.89 -m "test release"
5+
git tag -a v0.3.90 -m "test release"
66
# master: your branch name
77
git push origin master
88
# release and push to github & docker.io

0 commit comments

Comments
 (0)