Skip to content
Merged
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
4 changes: 4 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
Expand Down
84 changes: 76 additions & 8 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,31 +44,99 @@ changelog:
- '^test:'

dockers:
- id: demo-app
- id: demo-app-amd64
use: buildx
goarch: amd64
image_templates:
- ghcr.io/kumahq/kuma-counter-demo:{{ .Tag }}
- ghcr.io/kumahq/kuma-counter-demo:{{ .Major }}
- ghcr.io/kumahq/kuma-counter-demo:latest
- ghcr.io/kumahq/kuma-counter-demo:{{ .Tag }}-amd64
- ghcr.io/kumahq/kuma-counter-demo:{{ .Major }}-amd64
- ghcr.io/kumahq/kuma-counter-demo:latest-amd64
dockerfile: ./app/Dockerfile
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.source=https://github.com/kumahq/kuma-counter-demo"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- id: demo-app-debian-slim
- "--platform=linux/amd64"
- id: demo-app-arm64
use: buildx
goarch: arm64
image_templates:
- ghcr.io/kumahq/kuma-counter-demo:{{ .Tag }}-debian-slim
- ghcr.io/kumahq/kuma-counter-demo:{{ .Major }}-debian-slim
- ghcr.io/kumahq/kuma-counter-demo:debian-slim
- ghcr.io/kumahq/kuma-counter-demo:{{ .Tag }}-arm64
- ghcr.io/kumahq/kuma-counter-demo:{{ .Major }}-arm64
- ghcr.io/kumahq/kuma-counter-demo:latest-arm64
dockerfile: ./app/Dockerfile
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.source=https://github.com/kumahq/kuma-counter-demo"
- "--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"

- id: demo-app-debian-slim-amd64
use: buildx
goarch: amd64
image_templates:
- ghcr.io/kumahq/kuma-counter-demo:{{ .Tag }}-debian-slim-amd64
- ghcr.io/kumahq/kuma-counter-demo:{{ .Major }}-debian-slim-amd64
- ghcr.io/kumahq/kuma-counter-demo:debian-slim-amd64
dockerfile: ./app/Dockerfile
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.source=https://github.com/kumahq/kuma-counter-demo"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--build-arg=BASE_IMAGE=debian:12.8-slim"
- "--platform=linux/amd64"
- id: demo-app-debian-slim-arm64
use: buildx
goarch: arm64
image_templates:
- ghcr.io/kumahq/kuma-counter-demo:{{ .Tag }}-debian-slim-arm64
- ghcr.io/kumahq/kuma-counter-demo:{{ .Major }}-debian-slim-arm64
- ghcr.io/kumahq/kuma-counter-demo:debian-slim-arm64
dockerfile: ./app/Dockerfile
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.source=https://github.com/kumahq/kuma-counter-demo"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--build-arg=BASE_IMAGE=debian:12.8-slim"
- "--platform=linux/arm64"

docker_manifests:
- name_template: "ghcr.io/kumahq/kuma-counter-demo:{{ .Tag }}"
image_templates:
- ghcr.io/kumahq/kuma-counter-demo:{{ .Tag }}-amd64
- ghcr.io/kumahq/kuma-counter-demo:{{ .Tag }}-arm64
- name_template: "ghcr.io/kumahq/kuma-counter-demo:{{ .Major }}"
image_templates:
- ghcr.io/kumahq/kuma-counter-demo:{{ .Major }}-amd64
- ghcr.io/kumahq/kuma-counter-demo:{{ .Major }}-arm64
- name_template: "ghcr.io/kumahq/kuma-counter-demo:latest"
image_templates:
- ghcr.io/kumahq/kuma-counter-demo:latest-amd64
- ghcr.io/kumahq/kuma-counter-demo:latest-arm64
- name_template: "ghcr.io/kumahq/kuma-counter-demo:{{ .Tag }}-debian-slim"
image_templates:
- ghcr.io/kumahq/kuma-counter-demo:{{ .Tag }}-debian-slim-amd64
- ghcr.io/kumahq/kuma-counter-demo:{{ .Tag }}-debian-slim-arm64
- name_template: "ghcr.io/kumahq/kuma-counter-demo:{{ .Major }}-debian-slim"
image_templates:
- ghcr.io/kumahq/kuma-counter-demo:{{ .Major }}-debian-slim-amd64
- ghcr.io/kumahq/kuma-counter-demo:{{ .Major }}-debian-slim-arm64
- name_template: "ghcr.io/kumahq/kuma-counter-demo:debian-slim"
image_templates:
- ghcr.io/kumahq/kuma-counter-demo:debian-slim-amd64
- ghcr.io/kumahq/kuma-counter-demo:debian-slim-arm64

release:
draft: true
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ clean:
.PHONY: all
all: check build test run

.PHONY: release
release:
$(GORELEASER) release --clean

.PHONY: check
check: tidy fmt lint

Expand Down