-
Notifications
You must be signed in to change notification settings - Fork 1
/
.goreleaser.yml
77 lines (73 loc) · 2.19 KB
/
.goreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
before:
hooks:
- go mod tidy
builds:
- binary: adapter
main: ./cmd/adapter
env:
- CGO_ENABLED=0
mod_timestamp: "{{ .CommitTimestamp }}"
ldflags:
- "-s -w -X main.version={{ .Version }} -X main.commit={{ .Commit }}"
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
snapshot:
name_template: "{{ .Tag }}-next"
checksum:
name_template: 'checksums.txt'
changelog:
use: "github-native"
sort: "asc"
dockers:
- image_templates:
- &amd_image_gh "ghcr.io/egorhenek/go-oathkeeper-spicedb-adapter:v{{ .Version }}-amd64"
- &amd_image_dh "docker.io/henek/go-oathkeeper-spicedb-adapter:v{{ .Version }}-amd64"
use: buildx
dockerfile: Dockerfile.release
build_flag_templates:
- "--platform=linux/amd64"
- image_templates:
- &arm_image_gh "ghcr.io/egorhenek/go-oathkeeper-spicedb-adapter:v{{ .Version }}-arm64"
- &arm_image_dh "docker.io/henek/go-oathkeeper-spicedb-adapter:v{{ .Version }}-arm64"
use: buildx
goarch: arm64
dockerfile: Dockerfile.release
build_flag_templates:
- "--platform=linux/arm64"
docker_manifests:
# GitHub Container Registry
- name_template: "ghcr.io/egorhenek/go-oathkeeper-spicedb-adapter:latest"
image_templates:
- *amd_image_gh
- *arm_image_gh
- name_template: "ghcr.io/egorhenek/go-oathkeeper-spicedb-adapter:v{{ .Version }}"
image_templates:
- *amd_image_gh
- *arm_image_gh
# Docker Hub
- name_template: "docker.io/henek/go-oathkeeper-spicedb-adapter:latest"
image_templates:
- *amd_image_dh
- *arm_image_dh
- name_template: "docker.io/henek/go-oathkeeper-spicedb-adapter:v{{ .Version }}"
image_templates:
- *amd_image_dh
- *arm_image_dh
release:
mode: "replace"
draft: false
prerelease: auto
footer: |
## Docker Images
This release is available at `ghcr.io/egorhenek/go-oathkeeper-spicedb-adapter:v{{ .Version }}`
archives:
- format: binary
# The lines beneath this are called `modelines`. See `:help modeline`
# Feel free to remove those if you don't want/use them.
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj