-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser.yml
More file actions
35 lines (31 loc) · 800 Bytes
/
Copy path.goreleaser.yml
File metadata and controls
35 lines (31 loc) · 800 Bytes
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
version: 2
project_name: mikronec
builds:
- main: ./cmd/server
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
- "386"
archives:
- format: tar.gz
format_overrides:
- goos: windows
format: zip
dockers:
- image_templates:
- "ghcr.io/{{ .Env.GITHUB_REPOSITORY }}:{{ .Tag }}"
- "ghcr.io/{{ .Env.GITHUB_REPOSITORY }}:latest"
dockerfile: Dockerfile.release
goos: linux
goarch: amd64
use: buildx
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}}"