This repository has been archived by the owner on Dec 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.goreleaser.yaml
86 lines (78 loc) · 1.97 KB
/
.goreleaser.yaml
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
78
79
80
81
82
83
84
85
86
---
project_name: cicd
before:
hooks:
- sh ./scripts/generate-completions.sh
builds:
- main: ./cmd/playground
binary: playground
ldflags:
- -s -w
- -X github.com/calmonr/cicd/pkg/version.version={{.Version}}
- -X github.com/calmonr/cicd/pkg/version.commit={{.Commit}}
- -X github.com/calmonr/cicd/pkg/version.date={{.Date}}
env:
- CGO_ENABLED=0
goos:
- darwin
- linux
- windows
goarch:
- amd64
- arm64
mod_timestamp: "{{ .CommitTimestamp }}"
archives:
- wrap_in_directory: true
format_overrides:
- goos: windows
format: zip
files:
- completions/*
- LICENSE
- README.md
checksum:
name_template: checksums.txt
changelog:
use: github-native
dockers:
- goos: linux
goarch: amd64
image_templates:
- &amd_image_gh ghcr.io/calmonr/cicd:v{{ .Version }}-amd64
- &amd_image_dh calmonr/cicd:v{{ .Version }}-amd64
dockerfile: &dockerfile Dockerfile.release
use: buildx
build_flag_templates:
- --platform=linux/amd64
- goos: linux
goarch: arm64
image_templates:
- &arm_image_gh ghcr.io/calmonr/cicd:v{{ .Version }}-arm64
- &arm_image_dh calmonr/cicd:v{{ .Version }}-arm64
dockerfile: *dockerfile
use: buildx
build_flag_templates:
- --platform=linux/arm64
docker_manifests:
- name_template: ghcr.io/calmonr/cicd:v{{ .Version }}
image_templates:
- *amd_image_gh
- *arm_image_gh
- name_template: ghcr.io/calmonr/cicd:latest
image_templates:
- *amd_image_gh
- *arm_image_gh
- name_template: calmonr/cicd:v{{ .Version }}
image_templates:
- *amd_image_dh
- *arm_image_dh
- name_template: calmonr/cicd:latest
image_templates:
- *amd_image_dh
- *arm_image_dh
release:
draft: true
prerelease: auto
footer: |
## Docker Images
This release is available at: `calmonr/cicd:v{{ .Version }}`, `ghcr.io/calmonr/cicd:v{{ .Version }}`