Fix release Docker baseimage

Fixes #48 finally?
This commit is contained in:
Christoph Petrausch
2021-03-08 20:44:24 +01:00
parent 8319830811
commit 862a7ad2c7
3 changed files with 12 additions and 12 deletions

View File

@@ -92,7 +92,7 @@ nfpms:
dockers:
- dockerfile: release/Dockerfile.scratch
- dockerfile: release/Dockerfile
goos: linux
goarch: amd64
use_buildx: true
@@ -104,7 +104,7 @@ dockers:
- "ghcr.io/hikhvar/mqtt2prometheus:{{ .Tag }}-amd64"
- "ghcr.io/hikhvar/mqtt2prometheus:latest-amd64"
- dockerfile: release/Dockerfile.scratch
- dockerfile: release/Dockerfile
goos: linux
goarch: arm64
use_buildx: true
@@ -116,7 +116,7 @@ dockers:
- "ghcr.io/hikhvar/mqtt2prometheus:{{ .Tag }}-arm64"
- "ghcr.io/hikhvar/mqtt2prometheus:latest-arm64"
- dockerfile: release/Dockerfile.scratch
- dockerfile: release/Dockerfile
goos: linux
goarch: arm
goarm: 6
@@ -129,7 +129,7 @@ dockers:
- "ghcr.io/hikhvar/mqtt2prometheus:{{ .Tag }}-arm6"
- "ghcr.io/hikhvar/mqtt2prometheus:latest-arm6"
- dockerfile: release/Dockerfile.scratch
- dockerfile: release/Dockerfile
goos: linux
goarch: arm
goarm: 6
@@ -142,7 +142,7 @@ dockers:
- "ghcr.io/hikhvar/mqtt2prometheus:{{ .Tag }}-arm6"
- "ghcr.io/hikhvar/mqtt2prometheus:latest-arm6"
- dockerfile: release/Dockerfile.scratch
- dockerfile: release/Dockerfile
goos: linux
goarch: arm
goarm: 7
@@ -155,7 +155,7 @@ dockers:
- "ghcr.io/hikhvar/mqtt2prometheus:{{ .Tag }}-arm7"
- "ghcr.io/hikhvar/mqtt2prometheus:latest-arm7"
- dockerfile: release/Dockerfile.scratch
- dockerfile: release/Dockerfile
goos: linux
goarch: 386
use_buildx: true
@@ -167,7 +167,7 @@ dockers:
- "ghcr.io/hikhvar/mqtt2prometheus:{{ .Tag }}-386"
- "ghcr.io/hikhvar/mqtt2prometheus:latest-386"
- dockerfile: release/Dockerfile.scratch
- dockerfile: release/Dockerfile
goos: linux
goarch: riscv64
use_buildx: true
@@ -215,4 +215,4 @@ docker_manifests:
- "ghcr.io/hikhvar/mqtt2prometheus:latest-arm6"
- "ghcr.io/hikhvar/mqtt2prometheus:latest-arm7"
- "ghcr.io/hikhvar/mqtt2prometheus:latest-riscv64"
- "ghcr.io/hikhvar/mqtt2prometheus:latest-386"
- "ghcr.io/hikhvar/mqtt2prometheus:latest-386"

4
release/Dockerfile Normal file
View File

@@ -0,0 +1,4 @@
FROM gcr.io/distroless/static-debian10
COPY mqtt2prometheus /mqtt2prometheus
CMD ["/mqtt2prometheus"]

View File

@@ -1,4 +0,0 @@
FROM scratch
COPY mqtt2prometheus /mqtt2prometheus
CMD ["/mqtt2prometheus"]