From 3f99ffb48c148a6fac619c7e3fddddc679e20c13 Mon Sep 17 00:00:00 2001 From: Tony West <125916820+twest-bf@users.noreply.github.com> Date: Thu, 9 Jul 2026 11:29:51 -0400 Subject: [PATCH] Added docker support for releases --- .goreleaser.yaml | 18 ++++++++++++++++++ Dockerfile | 7 +++++++ 2 files changed, 25 insertions(+) create mode 100644 Dockerfile diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 6fb0297..3c2d8c2 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -30,6 +30,24 @@ archives: - goos: windows format: zip +dockers_v2: + - images: + - "ghcr.io/bishopfox/sj" + dockerfile: Dockerfile + platforms: + - linux/amd64 + - linux/arm64 + tags: + - "{{ .Version }}" + - "latest" + labels: + org.opencontainers.image.title: "{{ .ProjectName }}" + org.opencontainers.image.description: "Swagger Jacker" + org.opencontainers.image.version: "{{ .Version }}" + org.opencontainers.image.revision: "{{ .FullCommit }}" + org.opencontainers.image.source: "https://github.com/BishopFox/sj" + org.opencontainers.image.licenses: "MIT" + changelog: disable: false sort: asc diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c21e079 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM gcr.io/distroless/static-debian12:nonroot + +ARG TARGETOS +ARG TARGETARCH +COPY ${TARGETOS}/${TARGETARCH}/sj /usr/local/bin/sj + +ENTRYPOINT ["/usr/local/bin/sj"]