Skip to content

Commit

Permalink
Update .gereleaser.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Vic Shóstak committed Oct 31, 2023
1 parent 5dfc3b0 commit 65d0034
Showing 1 changed file with 58 additions and 28 deletions.
86 changes: 58 additions & 28 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ upx:
compress: best
lzma: true
brute: true
goos: [ linux, windows ] # skip darwin (macOS 13.x Ventura is not supported now)
goos: [ linux ] # skip windows and darwin (macOS 13.x Ventura is not supported now)
goarch: [ amd64, arm64 ]

release:
Expand All @@ -44,42 +44,42 @@ release:
## ✨ The {{ .ProjectName }} `{{ .Tag }}` release
footer: |
## How to update?
For native Go installation (any platforms):
```console
go install github.com/koddr/project@latest
```
For [Homebrew][brew_url] users (GNU/Linux, Apple macOS):
```console
brew upgrade gowebly/tap/project
```
For [Docker][docker_url] users (any platforms):
For [Docker][docker_url] users (GNU/Linux only):
```console
docker pull koddr/project:latest
```
For other ways (any platforms): manually download and re-install a ready-made package from the `Assets` section.
> 💡 Note: See the [Complete user guide][project_url] to get a general information.
## Your help to improve project
We would be truly grateful for any help with:
- Creating tests and benchmarks for code;
- Improving existing functions, structs, or tests;
- Feature requests with interesting functions that would be good to add;
- Say a few words about the project on your social networks and blogs (Dev.to, Medium, Хабр, and so on).
Your PRs & issues are welcome! Thanks 😉
<!-- Links -->
[brew_url]: https://brew.sh
[docker_url]: https://www.docker.com
[project_url]: https://github.com/koddr/project
Expand All @@ -88,23 +88,53 @@ release:

dockers:
-
id: '{{ .ProjectName }}'
id: '{{ .ProjectName }}_amd64'
ids: [ default ]
use: buildx
skip_push: auto
image_templates:
- 'gowebly/{{ .ProjectName }}:latest'
- 'gowebly/{{ .ProjectName }}:{{ .Tag }}'
- 'gowebly/{{ .ProjectName }}:v{{ .Major }}'
- 'gowebly/{{ .ProjectName }}:v{{ .Major }}.{{ .Minor }}'
- 'koddr/{{ .ProjectName }}:latest-amd64'
- 'koddr/{{ .ProjectName }}:{{ .Tag }}-amd64'
build_flag_templates:
- '--pull'
- '--label=org.opencontainers.image.created={{ .Date }}'
- '--label=org.opencontainers.image.title={{ .ProjectName }}'
- '--label=org.opencontainers.image.revision={{ .FullCommit }}'
- '--label=org.opencontainers.image.version={{ .Version }}'
- '--platform=linux/amd64'
skip_push: false
push_flags:
- '--tls-verify=false'
-
id: '{{ .ProjectName }}_arm64'
ids: [ default ]
use: buildx
skip_push: auto
image_templates:
- 'koddr/{{ .ProjectName }}:latest-arm64'
- 'koddr/{{ .ProjectName }}:{{ .Tag }}-arm64'
build_flag_templates:
- '--pull'
- '--label=org.opencontainers.image.created={{ .Date }}'
- '--label=org.opencontainers.image.title={{ .ProjectName }}'
- '--label=org.opencontainers.image.revision={{ .FullCommit }}'
- '--label=org.opencontainers.image.version={{ .Version }}'
- '--platform=linux/arm64'
push_flags:
- '--tls-verify=false'

docker_manifests:
-
name_template: 'koddr/{{ .ProjectName }}:latest'
skip_push: auto
image_templates:
- 'koddr/{{ .ProjectName }}:latest-amd64'
- 'koddr/{{ .ProjectName }}:latest-arm64'
-
name_template: 'koddr/{{ .ProjectName }}:{{ .Tag }}'
skip_push: auto
image_templates:
- 'koddr/{{ .ProjectName }}:{{ .Tag }}-amd64'
- 'koddr/{{ .ProjectName }}:{{ .Tag }}-arm64'

brews:
-
Expand All @@ -125,18 +155,18 @@ brews:
folder: Formula
caveats: |
After install:
1. Create a new '.project.yml' config file:
$ project init
2. Edit a config file with your settings and options.
3. Run a generation process to build Docker files to deploy your project:
$ project build
4. Deploy your project by the generated 'docker-compose.yml' file to the remote server (for ex., with the Portainer platform).
💡 Note: See the Complete user guide (https://github.com/koddr/project) to get a general information.
homepage: 'https://github.com/koddr/{{ .ProjectName }}'
description: |
Expand Down

0 comments on commit 65d0034

Please sign in to comment.