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
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Run GoReleaser
run: mise release
env:
Expand Down
42 changes: 15 additions & 27 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,34 +12,22 @@ builds:
goos: [ linux, darwin ]
goarch: [ amd64, arm64 ]

dockers:
- dockerfile: dockerfiles/apiserver-mock/Dockerfile
image_templates:
- "ghcr.io/skpr/api:{{ .Major }}.{{ .Minor }}-amd64"
- "ghcr.io/skpr/api:latest-amd64"
build_flag_templates:
- "--pull"
- "--platform=linux/amd64"
use: buildx
- dockerfile: dockerfiles/apiserver-mock/Dockerfile
image_templates:
- "ghcr.io/skpr/api:{{ .Major }}.{{ .Minor }}-arm64"
- "ghcr.io/skpr/api:latest-arm64"
build_flag_templates:
dockers_v2:
- id: skpr-apiserver-mock
dockerfile: dockerfiles/apiserver-mock/Dockerfile
ids:
- skpr-apiserver-mock
images:
- ghcr.io/skpr/api
tags:
- "{{ .Major }}.{{ .Minor }}"
- "latest"
sbom: false
flags:
- "--pull"
- "--platform=linux/arm64"
use: buildx
goarch: arm64

docker_manifests:
- name_template: "ghcr.io/skpr/api:{{ .Major }}.{{ .Minor }}"
image_templates:
- "ghcr.io/skpr/api:{{ .Major }}.{{ .Minor }}-amd64"
- "ghcr.io/skpr/api:{{ .Major }}.{{ .Minor }}-arm64"
- name_template: "ghcr.io/skpr/api:latest"
image_templates:
- "ghcr.io/skpr/api:latest-amd64"
- "ghcr.io/skpr/api:latest-arm64"
platforms:
- linux/amd64
- linux/arm64

changelog:
use: github-native
2 changes: 1 addition & 1 deletion .mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
go = "1.26"
"go:github.com/daixiang0/gci" = "latest"
"ubi:golangci/golangci-lint" = "2.10"
"ubi:goreleaser/goreleaser" = "2.12"
"ubi:goreleaser/goreleaser" = "2.14"

[env]
CGO_ENABLED=0
Expand Down
3 changes: 2 additions & 1 deletion dockerfiles/apiserver-mock/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FROM alpine:latest

COPY skpr-apiserver-mock /usr/local/bin/
ARG TARGETPLATFORM
COPY ${TARGETPLATFORM}/skpr-apiserver-mock /usr/local/bin/

ENTRYPOINT ["/usr/local/bin/skpr-apiserver-mock"]