From ecb85c74991670de06604403fb8a0c330a48cbb1 Mon Sep 17 00:00:00 2001 From: Ondrej Sika Date: Wed, 4 Aug 2021 08:52:39 +0200 Subject: [PATCH] chore(goreleaser): Build Docker images --- .goreleaser.yml | 41 +++++++++++++++++++++++++++++++++++++++++ Dockerfile | 5 +++++ Dockerfile.arm64v8 | 5 +++++ 3 files changed, 51 insertions(+) create mode 100644 Dockerfile create mode 100644 Dockerfile.arm64v8 diff --git a/.goreleaser.yml b/.goreleaser.yml index 3444a022..b1f08ab0 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -61,3 +61,44 @@ brews: description: "SikaLabs Utils" test: | system "#{bin}/slut version" + +dockers: + - + goos: linux + goarch: amd64 + image_templates: + - "sikalabs/slut:{{ .Tag }}" + skip_push: false + dockerfile: Dockerfile + ids: + - slut + build_flag_templates: + - "--label=org.opencontainers.image.created={{.Date}}" + - "--label=org.opencontainers.image.title={{.ProjectName}}" + - "--label=org.opencontainers.image.revision={{.FullCommit}}" + - "--label=org.opencontainers.image.version={{.Version}}" + - "--label=org.label-schema.schema-version=1.0" + - "--label=org.label-schema.version={{.Version}}" + - "--label=org.label-schema.name={{.ProjectName}}" + - "--label=com.github.actions.name={{.ProjectName}}" + - "--label=repository=https://github.com/sikalabs/slut" + - "--label=maintainer=SikaLabs " + - goos: linux + goarch: arm64 + image_templates: + - "sikalabs/slut:{{ .Tag }}-arm64v8" + skip_push: false + dockerfile: Dockerfile.arm64v8 + ids: + - slut + build_flag_templates: + - "--label=org.opencontainers.image.created={{.Date}}" + - "--label=org.opencontainers.image.title={{.ProjectName}}" + - "--label=org.opencontainers.image.revision={{.FullCommit}}" + - "--label=org.opencontainers.image.version={{.Version}}" + - "--label=org.label-schema.schema-version=1.0" + - "--label=org.label-schema.version={{.Version}}" + - "--label=org.label-schema.name={{.ProjectName}}" + - "--label=com.github.actions.name={{.ProjectName}}" + - "--label=repository=https://github.com/sikalabs/slut" + - "--label=maintainer=SikaLabs " diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..bb73497f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM debian:10-slim + +COPY slut / + +ENTRYPOINT [ "/slut" ] diff --git a/Dockerfile.arm64v8 b/Dockerfile.arm64v8 new file mode 100644 index 00000000..a106f5c5 --- /dev/null +++ b/Dockerfile.arm64v8 @@ -0,0 +1,5 @@ +FROM arm64v8/debian:10-slim + +COPY slut / + +ENTRYPOINT [ "/slut" ]