-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update and unified goreleaser setup.
- Loading branch information
1 parent
9017e95
commit c6f79e7
Showing
4 changed files
with
57 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
# .goreleaser-release.yaml | ||
# | ||
# The GoReleaser configuration for rgw Defacto2 server. | ||
# | ||
# This goreleaser file is intended for the included docker-compose.yml file | ||
# to generate a release build of the server for Linux. | ||
# The GoReleaser configuration for the Defacto2 server. | ||
# GoReleaser is a release automation tool for Go projects and this file is | ||
# is intended for use with a GitHub Actions workflow to generate a release build | ||
# when a new tag is created. | ||
# | ||
# The configuration documentation is at https://goreleaser.com. | ||
# | ||
|
@@ -15,32 +15,63 @@ | |
project_name: df2-server | ||
before: | ||
hooks: | ||
# You may remove this if you don't use go modules. | ||
- go mod tidy | ||
builds: | ||
- id: server | ||
main: server.go | ||
env: | ||
- CGO_ENABLED=0 | ||
targets: | ||
# keep the number of targets to a minimum to improve the build time. | ||
- linux_amd64 | ||
archives: | ||
- format: zip | ||
- format: zip # create a zip archive for simplicity | ||
name_template: >- | ||
{{ tolower .ProjectName }}_{{ .Version }}_{{- tolower .Os }} | ||
{{ tolower .ProjectName }}_{{- tolower .Os }} | ||
files: | ||
- src: public/text/defacto2.txt | ||
strip_parent: true | ||
dst: defacto2.txt | ||
info: | ||
mtime: "{{ .CommitDate }}" | ||
mode: 0644 # rw-r--r-- | ||
- src: init/defacto2.service | ||
dst: defacto2.service | ||
info: | ||
mtime: "{{ .CommitDate }}" | ||
mode: 0644 # rw-r--r-- | ||
- src: init/example.env.local | ||
dst: example.env | ||
info: | ||
mtime: "{{ .CommitDate }}" | ||
mode: 0644 # rw-r--r-- | ||
nfpms: | ||
- id: deb # create a .deb package for use with dpkg | ||
builds: ["server"] | ||
package_name: df2-server | ||
file_name_template: "{{ .ConventionalFileName }}" | ||
vendor: Defacto2 | ||
homepage: https://github.com/Defacto2/server | ||
maintainer: Ben Garrett <[email protected]> | ||
description: |- | ||
Defacto2 web server installer package. | ||
license: GPL-3.0 | ||
formats: | ||
- deb | ||
dependencies: | ||
- git | ||
recommends: | ||
- caddy | ||
- postgresql | ||
checksum: | ||
name_template: "checksums.txt" | ||
name_template: "{{ .ProjectName }}_{{ .Version }}_checksums.txt" | ||
snapshot: | ||
name_template: "{{ incpatch .Version }}-next" | ||
signs: | ||
- artifacts: checksum | ||
changelog: | ||
sort: asc | ||
filters: | ||
exclude: | ||
- "^docs:" | ||
- "^test:" | ||
- "^tmp:" | ||
- ".env.local" | ||
- ".env" |