Skip to content

Instantly share code, notes, and snippets.

@caarlos0
Last active September 17, 2024 00:45
Show Gist options
  • Save caarlos0/e15affe4df085cb8eaa5fb845dad9cf9 to your computer and use it in GitHub Desktop.
Save caarlos0/e15affe4df085cb8eaa5fb845dad9cf9 to your computer and use it in GitHub Desktop.
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
# The lines below are called `modelines`. See `:help modeline`
# Feel free to remove those if you don't want/need to use them.
# yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
version: 2
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
binary: foo
partial:
by: target
dockers:
- goos: linux
goarch: amd64
image_templates:
- "test:{{.Tag}}-amd64"
- goos: linux
goarch: arm64
image_templates:
- "test:{{.Tag}}-arm64"
FROM alpine
COPY foo /usr/bin/foo
ENTRYPOINT [ "/usr/bin/foo" ]
module test
go 1.22.7
package main
import "fmt"
func main() {
fmt.Println("HELLO")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment