Skip to content

Commit 7f20ee1

Browse files
authored
Merge pull request #47 from numary/fix/add-arm64-docker-image
Fix add ARM 64 Docker Image
2 parents 35d6afe + 0e26702 commit 7f20ee1

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/.goreleaser.default.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ builds:
1313
- -X github.com/numary/ledger/cmd.BuildDate={{ .Date }}
1414
- -X github.com/numary/ledger/cmd.Version={{ .Version }}
1515
- -X github.com/numary/ledger/cmd.Commit={{ .ShortCommit }}
16+
- -extldflags "-static"
1617
env:
1718
- CGO_ENABLED=1
1819
goos:
@@ -83,13 +84,27 @@ dockers:
8384
- --label=org.opencontainers.image.version={{ .Version }}
8485
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
8586
- --label=org.opencontainers.image.revision={{ .FullCommit }}
87+
- image_templates: ["ghcr.io/numary/ledger:{{ .Version }}-arm64"]
88+
dockerfile: Dockerfile
89+
use: buildx
90+
build_flag_templates:
91+
- --platform=linux/arm64
92+
- --label=org.opencontainers.image.title={{ .ProjectName }}
93+
- --label=org.opencontainers.image.description={{ .ProjectName }}
94+
- --label=org.opencontainers.image.url=https://github.com/numary/ledger
95+
- --label=org.opencontainers.image.source=https://github.com/numary/ledger
96+
- --label=org.opencontainers.image.version={{ .Version }}
97+
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
98+
- --label=org.opencontainers.image.revision={{ .FullCommit }}
8699
docker_manifests:
87100
- name_template: ghcr.io/numary/ledger:{{ .Version }}
88101
image_templates:
89102
- ghcr.io/numary/ledger:{{ .Version }}-amd64
103+
- ghcr.io/numary/ledger:{{ .Version }}-arm64
90104
- name_template: ghcr.io/numary/ledger:latest
91105
image_templates:
92106
- ghcr.io/numary/ledger:{{ .Version }}-amd64
107+
- ghcr.io/numary/ledger:{{ .Version }}-arm64
93108

94109
brews:
95110
- tap:

0 commit comments

Comments
 (0)