Skip to content

Commit

Permalink
Fall back to mostly default goreleaser archives
Browse files Browse the repository at this point in the history
  • Loading branch information
zachfi committed Mar 10, 2024
1 parent ddf4143 commit 1dba890
Showing 1 changed file with 1 addition and 103 deletions.
104 changes: 1 addition & 103 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,108 +39,6 @@ changelog:
exclude:
- '^docs:'
- '^test:'

# .goreleaser.yaml
archives:
- #
# ID of this archive.
#
# Default: 'default'
id: default

# Builds reference which build instances should be archived in this archive.
builds:
- default

# Archive format. Valid options are `tar.gz`, `tgz`, `tar.xz`, `txz`, tar`, `gz`, `zip` and `binary`.
# If format is `binary`, no archives are created and the binaries are instead
# uploaded directly.
#
# Default: 'tar.gz'
format: tar.gz

# This will create an archive without any binaries, only the files are there.
# The name template must not contain any references to `Os`, `Arch` and etc, since the archive will be meta.
#
# Since: v1.9
# Templates: allowed
meta: false

# Archive name.
#
# Default:
# - if format is `binary`:
# - `{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}`
# - if format is anything else:
# - `{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}`
# Templates: allowed
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Runtime.Goos }}_{{ .Runtime.Goarch }}'

# Sets the given file info to all the binaries included from the `builds`.
#
# Default: copied from the source binary.
# Since: v1.14
builds_info:
group: root
owner: root
mode: 0644
# format is `time.RFC3339Nano`
mtime: 2008-01-02T15:04:05Z

# Set this to true if you want all files in the archive to be in a single directory.
# If set to true and you extract the archive 'goreleaser_Linux_arm64.tar.gz',
# you'll get a folder 'goreleaser_Linux_arm64'.
# If set to false, all files are extracted separately.
# You can also set it to a custom folder name (templating is supported).
wrap_in_directory: true

# If set to true, will strip the parent directories away from binary files.
#
# This might be useful if you have your binary be built with a subdir for some reason, but do no want that subdir inside the archive.
#
# Since: v1.11
strip_parent_binary_folder: true

# Can be used to change the archive formats for specific GOOSs.
# Most common use case is to archive as zip on Windows.
format_overrides:
- goos: windows
format: zip

# Additional files/globs you want to add to the archive.
#
# Default: [ 'LICENSE*', 'README*', 'CHANGELOG', 'license*', 'readme*', 'changelog']
# Templates: allowed
- id: 'default'
files: ['contrib/arch/nodemanager.service']
# - CHANGELOG.md
# - docs/*
# - design/*.png
# - templates/**/*
# # a more complete example, check the globbing deep dive below
# - src: '*.md'
# dst: docs
#
# # Strip parent folders when adding files to the archive.
# strip_parent: true
#
# # File info.
# # Not all fields are supported by all formats available formats.
# #
# # Default: copied from the source file
# info:
# # Templates: allowed (since v1.14)
# owner: root
#
# # Templates: allowed (since v1.14)
# group: root
#
# # Must be in time.RFC3339Nano format.
# #
# # Templates: allowed (since v1.14)
# mtime: '{{ .CommitDate }}'
#
# # File mode.
# mode: 0644

# Disables the binary count check.
allow_different_binary_count: true

0 comments on commit 1dba890

Please sign in to comment.