Skip to content
Draft
Show file tree
Hide file tree
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
41 changes: 41 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,47 @@ dockers:
- .git
build_flag_templates:
- "--build-arg=VERSION={{ .Version }}"
use: buildx
goarch: amd64
dockerfile: Dockerfile
- image_templates:
- "scaleway/cli:latest-arm64"
- "scaleway/cli:{{ .Tag }}-arm64"
- "scaleway/cli:{{ .Major }}-arm64"
- "scaleway/cli:{{ .Major }}.{{ .Minor }}-arm64"
extra_files:
- go.mod
- go.sum
- scripts
- cmd
- core
- commands
- internal
- .git
build_flag_templates:
- "--build-arg=VERSION={{ .Version }}"
- "--platform=linux/arm64"
use: buildx
goarch: arm64
dockerfile: Dockerfile

docker_manifests:
- name_template: "scaleway/cli:latest"
image_templates:
- "scaleway/cli:latest"
- "scaleway/cli:latest-arm64"
- name_template: "scaleway/cli:{{ .Tag }}"
image_templates:
- "scaleway/cli:{{ .Tag }}"
- "scaleway/cli:{{ .Tag }}-arm64"
- name_template: "scaleway/cli:{{ .Major }}"
image_templates:
- "scaleway/cli:{{ .Major }}"
- "scaleway/cli:{{ .Major }}-arm64"
- name_template: "scaleway/cli:{{ .Major }}.{{ .Minor }}"
image_templates:
- "scaleway/cli:{{ .Major }}.{{ .Minor }}"
- "scaleway/cli:{{ .Major }}.{{ .Minor }}-arm64"

release:
github:
Expand Down
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
FROM golang:1.25-alpine3.21 AS builder
FROM --platform=$BUILDPLATFORM golang:1.25-alpine3.21 AS builder

ENV BUILD_IN_DOCKER=true
ARG TARGETPLATFORM
ARG TARGETOS
ARG TARGETARCH
ARG VERSION

# ca-certificates is needed to add the certificates on the next image
Expand Down
Loading