Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ builds:
- linux
goarch:
- amd64
- arm64
hooks:
pre: make build
# ldflags:
Expand Down Expand Up @@ -74,3 +75,29 @@ dockers:

extra_files:
- config.sample.toml
- id: gullak-arm64
goos: linux
goarch: arm64
ids:
- gullak
image_templates:
- "ghcr.io/mr-karan/gullak:{{ .Tag }}-arm64"
- "ghcr.io/mr-karan/gullak:latest-arm64"
dockerfile: Dockerfile
use: docker
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}}"
- "--platform=linux/arm64"
extra_files:
- config.sample.toml

# simply pull gullak:latest and Docker automatically selects the right architecture
docker_manifests:
- name_template: ghcr.io/mr-karan/gullak:latest
image_templates:
- ghcr.io/mr-karan/gullak:latest-amd64
- ghcr.io/mr-karan/gullak:latest-arm64