| 1 |
################################################################################ |
| 2 |
# # |
| 3 |
# GoReleaser OSS Nightly Release Configuration # |
| 4 |
# # |
| 5 |
# Project: Shoutrrr # |
| 6 |
# Repository: https://github.com/nicholas-fedor/shoutrrr/ # |
| 7 |
# # |
| 8 |
# GoReleaser URL: https://goreleaser.com/ # |
| 9 |
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json # |
| 10 |
# vim: set ts=2 sw=2 tw=0 fo=cnqoj # |
| 11 |
# # |
| 12 |
################################################################################ |
| 13 |
|
| 14 |
################################################################################ |
| 15 |
# Configuration Version |
| 16 |
version: 2 |
| 17 |
################################################################################ |
| 18 |
|
| 19 |
# ############################################################################## |
| 20 |
# Project Name |
| 21 |
# https://goreleaser.com/customization/project/ |
| 22 |
# ############################################################################## |
| 23 |
project_name: "shoutrrr" |
| 24 |
|
| 25 |
################################################################################ |
| 26 |
# Go Binary Build Configuration |
| 27 |
# https://goreleaser.com/customization/builds/go/ |
| 28 |
################################################################################ |
| 29 |
builds: |
| 30 |
- id: "shoutrrr-binary" |
| 31 |
main: "./shoutrrr/main.go" |
| 32 |
binary: "shoutrrr" |
| 33 |
flags: |
| 34 |
- -trimpath |
| 35 |
ldflags: |
| 36 |
- -s -w |
| 37 |
- -X main.version={{ .Version }} |
| 38 |
- -X main.commit={{ .Commit }} |
| 39 |
- -X main.date={{ .CommitDate }} |
| 40 |
- -X github.com/nicholas-fedor/shoutrrr/internal/meta.Version={{ .Version }} |
| 41 |
- -X github.com/nicholas-fedor/shoutrrr/internal/meta.Commit={{ .Commit }} |
| 42 |
- -X github.com/nicholas-fedor/shoutrrr/internal/meta.Date={{ .CommitDate }} |
| 43 |
env: |
| 44 |
- CGO_ENABLED=0 |
| 45 |
goos: |
| 46 |
- linux |
| 47 |
- windows |
| 48 |
- darwin |
| 49 |
goarch: |
| 50 |
- amd64 |
| 51 |
- "386" |
| 52 |
- arm |
| 53 |
- arm64 |
| 54 |
- riscv64 |
| 55 |
ignore: |
| 56 |
- goos: windows |
| 57 |
goarch: riscv64 |
| 58 |
- goos: windows |
| 59 |
goarch: arm |
| 60 |
- goos: darwin |
| 61 |
goarch: "386" |
| 62 |
- goos: darwin |
| 63 |
goarch: arm |
| 64 |
- goos: darwin |
| 65 |
goarch: riscv64 |
| 66 |
mod_timestamp: "{{ .CommitTimestamp }}" |
| 67 |
|
| 68 |
################################################################################ |
| 69 |
# Release Configuration (SCM) |
| 70 |
# https://goreleaser.com/customization/publish/scm/ |
| 71 |
################################################################################ |
| 72 |
# Skip release to GitHub for nightly releases |
| 73 |
release: |
| 74 |
disable: true |
| 75 |
|
| 76 |
################################################################################ |
| 77 |
# Docker Digests Configuration |
| 78 |
# https://goreleaser.com/customization/package/docker_digests/ |
| 79 |
################################################################################ |
| 80 |
docker_digest: |
| 81 |
name_template: "digests.txt" |
| 82 |
|
| 83 |
################################################################################ |
| 84 |
# Docker Image Build Configuration (Modern dockers_v2) |
| 85 |
# https://goreleaser.com/customization/package/dockers_v2/ |
| 86 |
################################################################################ |
| 87 |
dockers_v2: |
| 88 |
############################################################################## |
| 89 |
# Multi-platform manifest (all platforms) - non-prefixed nightly tag only |
| 90 |
############################################################################## |
| 91 |
- id: "shoutrrr-manifest-nightly" |
| 92 |
ids: ["shoutrrr-binary"] |
| 93 |
images: |
| 94 |
- "nickfedor/shoutrrr" |
| 95 |
- "ghcr.io/nicholas-fedor/shoutrrr" |
| 96 |
tags: |
| 97 |
- "nightly" |
| 98 |
dockerfile: build/docker/Dockerfile |
| 99 |
platforms: |
| 100 |
- linux/amd64 |
| 101 |
- linux/386 |
| 102 |
- linux/arm/v6 |
| 103 |
- linux/arm64 |
| 104 |
- linux/riscv64 |
| 105 |
labels: |
| 106 |
org.opencontainers.image.name: "shoutrrr" |
| 107 |
org.opencontainers.image.created: "{{ .Date }}" |
| 108 |
org.opencontainers.image.version: "{{ .Version }}" |
| 109 |
org.opencontainers.image.revision: "{{ .FullCommit }}" |
| 110 |
org.opencontainers.image.source: "{{ .GitURL }}" |
| 111 |
org.opencontainers.image.description: "The Shoutrrr CLI" |
| 112 |
org.opencontainers.image.licenses: "MIT" |
| 113 |
org.opencontainers.image.url: "https://github.com/nicholas-fedor/shoutrrr" |
| 114 |
org.opencontainers.image.documentation: "https://shoutrrr.nickfedor.com" |
| 115 |
|
| 116 |
############################################################################## |
| 117 |
# Platform-specific images - platform-prefixed nightly tags only |
| 118 |
############################################################################## |
| 119 |
- id: "shoutrrr-amd64-nightly" |
| 120 |
ids: ["shoutrrr-binary"] |
| 121 |
images: |
| 122 |
- "nickfedor/shoutrrr" |
| 123 |
- "ghcr.io/nicholas-fedor/shoutrrr" |
| 124 |
tags: |
| 125 |
- "amd64-nightly" |
| 126 |
dockerfile: build/docker/Dockerfile |
| 127 |
platforms: |
| 128 |
- linux/amd64 |
| 129 |
labels: |
| 130 |
org.opencontainers.image.name: "shoutrrr" |
| 131 |
org.opencontainers.image.created: "{{ .Date }}" |
| 132 |
org.opencontainers.image.version: "{{ .Version }}" |
| 133 |
org.opencontainers.image.revision: "{{ .FullCommit }}" |
| 134 |
org.opencontainers.image.source: "{{ .GitURL }}" |
| 135 |
org.opencontainers.image.description: "The Shoutrrr CLI" |
| 136 |
org.opencontainers.image.licenses: "MIT" |
| 137 |
org.opencontainers.image.url: "https://github.com/nicholas-fedor/shoutrrr" |
| 138 |
org.opencontainers.image.documentation: "https://shoutrrr.nickfedor.com" |
| 139 |
|
| 140 |
- id: "shoutrrr-i386-nightly" |
| 141 |
ids: ["shoutrrr-binary"] |
| 142 |
images: |
| 143 |
- "nickfedor/shoutrrr" |
| 144 |
- "ghcr.io/nicholas-fedor/shoutrrr" |
| 145 |
tags: |
| 146 |
- "i386-nightly" |
| 147 |
dockerfile: build/docker/Dockerfile |
| 148 |
platforms: |
| 149 |
- linux/386 |
| 150 |
labels: |
| 151 |
org.opencontainers.image.name: "shoutrrr" |
| 152 |
org.opencontainers.image.created: "{{ .Date }}" |
| 153 |
org.opencontainers.image.version: "{{ .Version }}" |
| 154 |
org.opencontainers.image.revision: "{{ .FullCommit }}" |
| 155 |
org.opencontainers.image.source: "{{ .GitURL }}" |
| 156 |
org.opencontainers.image.description: "The Shoutrrr CLI" |
| 157 |
org.opencontainers.image.licenses: "MIT" |
| 158 |
org.opencontainers.image.url: "https://github.com/nicholas-fedor/shoutrrr" |
| 159 |
org.opencontainers.image.documentation: "https://shoutrrr.nickfedor.com" |
| 160 |
|
| 161 |
- id: "shoutrrr-armhf-nightly" |
| 162 |
ids: ["shoutrrr-binary"] |
| 163 |
images: |
| 164 |
- "nickfedor/shoutrrr" |
| 165 |
- "ghcr.io/nicholas-fedor/shoutrrr" |
| 166 |
tags: |
| 167 |
- "armhf-nightly" |
| 168 |
dockerfile: build/docker/Dockerfile |
| 169 |
platforms: |
| 170 |
- linux/arm/v6 |
| 171 |
labels: |
| 172 |
org.opencontainers.image.name: "shoutrrr" |
| 173 |
org.opencontainers.image.created: "{{ .Date }}" |
| 174 |
org.opencontainers.image.version: "{{ .Version }}" |
| 175 |
org.opencontainers.image.revision: "{{ .FullCommit }}" |
| 176 |
org.opencontainers.image.source: "{{ .GitURL }}" |
| 177 |
org.opencontainers.image.description: "The Shoutrrr CLI" |
| 178 |
org.opencontainers.image.licenses: "MIT" |
| 179 |
org.opencontainers.image.url: "https://github.com/nicholas-fedor/shoutrrr" |
| 180 |
org.opencontainers.image.documentation: "https://shoutrrr.nickfedor.com" |
| 181 |
|
| 182 |
- id: "shoutrrr-arm64v8-nightly" |
| 183 |
ids: ["shoutrrr-binary"] |
| 184 |
images: |
| 185 |
- "nickfedor/shoutrrr" |
| 186 |
- "ghcr.io/nicholas-fedor/shoutrrr" |
| 187 |
tags: |
| 188 |
- "arm64v8-nightly" |
| 189 |
dockerfile: build/docker/Dockerfile |
| 190 |
platforms: |
| 191 |
- linux/arm64 |
| 192 |
labels: |
| 193 |
org.opencontainers.image.name: "shoutrrr" |
| 194 |
org.opencontainers.image.created: "{{ .Date }}" |
| 195 |
org.opencontainers.image.version: "{{ .Version }}" |
| 196 |
org.opencontainers.image.revision: "{{ .FullCommit }}" |
| 197 |
org.opencontainers.image.source: "{{ .GitURL }}" |
| 198 |
org.opencontainers.image.description: "The Shoutrrr CLI" |
| 199 |
org.opencontainers.image.licenses: "MIT" |
| 200 |
org.opencontainers.image.url: "https://github.com/nicholas-fedor/shoutrrr" |
| 201 |
org.opencontainers.image.documentation: "https://shoutrrr.nickfedor.com" |
| 202 |
|
| 203 |
- id: "shoutrrr-riscv64-nightly" |
| 204 |
ids: ["shoutrrr-binary"] |
| 205 |
images: |
| 206 |
- "nickfedor/shoutrrr" |
| 207 |
- "ghcr.io/nicholas-fedor/shoutrrr" |
| 208 |
tags: |
| 209 |
- "riscv64-nightly" |
| 210 |
dockerfile: build/docker/Dockerfile |
| 211 |
platforms: |
| 212 |
- linux/riscv64 |
| 213 |
labels: |
| 214 |
org.opencontainers.image.name: "shoutrrr" |
| 215 |
org.opencontainers.image.created: "{{ .Date }}" |
| 216 |
org.opencontainers.image.version: "{{ .Version }}" |
| 217 |
org.opencontainers.image.revision: "{{ .FullCommit }}" |
| 218 |
org.opencontainers.image.source: "{{ .GitURL }}" |
| 219 |
org.opencontainers.image.description: "The Shoutrrr CLI" |
| 220 |
org.opencontainers.image.licenses: "MIT" |
| 221 |
org.opencontainers.image.url: "https://github.com/nicholas-fedor/shoutrrr" |
| 222 |
org.opencontainers.image.documentation: "https://shoutrrr.nickfedor.com" |
| 223 |
|
| 224 |
################################################################################ |
| 225 |
# Docker Image Signing (Cosign) |
| 226 |
# https://goreleaser.com/customization/sign/docker_sign/ |
| 227 |
################################################################################ |
| 228 |
docker_signs: |
| 229 |
- id: cosign-images |
| 230 |
cmd: cosign |
| 231 |
args: |
| 232 |
- "sign" |
| 233 |
- "${artifact}@${digest}" |
| 234 |
- "--yes" |
| 235 |
output: true |
| 236 |
|
| 237 |
################################################################################ |
| 238 |
# Changelog Configuration |
| 239 |
# https://goreleaser.com/customization/changelog/ |
| 240 |
################################################################################ |
| 241 |
changelog: |
| 242 |
disable: true |