Skip to content

Commit

Permalink
chore(goreleaser): Build Docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejsika committed Aug 4, 2021
1 parent a42ad15 commit ecb85c7
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <opensource@sikalabs.com>"
- 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 <opensource@sikalabs.com>"
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM debian:10-slim

COPY slut /

ENTRYPOINT [ "/slut" ]
5 changes: 5 additions & 0 deletions Dockerfile.arm64v8
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM arm64v8/debian:10-slim

COPY slut /

ENTRYPOINT [ "/slut" ]

0 comments on commit ecb85c7

Please sign in to comment.