From d9bcb3ce31c51d572c51ac0f76f02c7317114f09 Mon Sep 17 00:00:00 2001 From: Simon Mittag Date: Mon, 4 Dec 2023 19:45:44 +1100 Subject: [PATCH] updated dockers and docker manifests section for multi-arch --- .goreleaser.yml | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index ec67e8a..7ef5007 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -17,8 +17,7 @@ universal_binaries: - replace: true brews: - - - name: j8a + - name: j8a homepage: "https://github.com/simonmittag/j8a" tap: owner: simonmittag @@ -28,8 +27,24 @@ brews: email: simonmittag@gmail.com dockers: - - image_templates: - - "docker.io/simonmittag/j8a:{{.Tag}}" + - goarch: amd64 + goos: linux + image_templates: + - 'docker.io/simonmittag/j8a:{{.Tag}}-amd64' + - goarch: arm64 + goos: darwin + image_templates: + - 'docker.io/simonmittag/j8a:{{.Tag}}-arm64' + +docker_manifests: + - name_template: 'docker.io/simonmittag/j8a:{{.Tag}}' + image_templates: + - 'docker.io/simonmittag/j8a:{{.Tag}}-arm64' + - 'docker.io/simonmittag/j8a:{{.Tag}}-amd64' + - name_template: 'docker.io/simonmittag/j8a:latest' + image_templates: + - 'docker.io/simonmittag/j8a:{{.Tag}}-arm64' + - 'docker.io/simonmittag/j8a:{{.Tag}}-amd64' checksum: name_template: 'checksums.txt' \ No newline at end of file