From c9459be874cd22dc434eb38bf0fae9a9bf484ff0 Mon Sep 17 00:00:00 2001 From: yair Date: Wed, 27 Dec 2023 18:58:28 +0200 Subject: [PATCH 1/4] testing withouts deps --- Dockerfile | 2 -- 1 file changed, 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1c8592d..e7ce54c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,5 @@ FROM golang:1.21-alpine -USER nonroot:nonroot - ENTRYPOINT ["/usr/bin/port-k8s-exporter"] COPY port-k8s-exporter /usr/bin/port-k8s-exporter From 7cb8a19d55c22053b4146a2822b52a733e585d72 Mon Sep 17 00:00:00 2001 From: yair Date: Wed, 27 Dec 2023 19:00:39 +0200 Subject: [PATCH 2/4] add a link to the stack overflow --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e7b7b35..5b76944 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -43,6 +43,7 @@ jobs: go-version: 1.21 cache: true + # https://stackoverflow.com/questions/51475992/cgo-cross-compiling-from-amd64linux-to-arm64linux/75368290#75368290 - name: musl-cross for CGO Support run: | mkdir ../../musl-cross From 47f4ebed0322001216b0f99129368990eb5c9618 Mon Sep 17 00:00:00 2001 From: yair Date: Thu, 28 Dec 2023 11:20:41 +0200 Subject: [PATCH 3/4] testing old image --- .github/workflows/release.yml | 2 +- Dockerfile | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5b76944..99e98d3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -54,7 +54,7 @@ jobs: uses: goreleaser/goreleaser-action@v3 with: version: latest - args: release --rm-dist + args: release --rm-dist --snapshot env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} diff --git a/Dockerfile b/Dockerfile index e7ce54c..7a9b264 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,6 @@ -FROM golang:1.21-alpine +FROM gcr.io/distroless/static-debian11 + +USER nonroot:nonroot ENTRYPOINT ["/usr/bin/port-k8s-exporter"] From d168432b85da6e814d5e1b40cb691746ed30bf4e Mon Sep 17 00:00:00 2001 From: yair Date: Thu, 28 Dec 2023 11:28:45 +0200 Subject: [PATCH 4/4] testing old image --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 99e98d3..5b76944 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -54,7 +54,7 @@ jobs: uses: goreleaser/goreleaser-action@v3 with: version: latest - args: release --rm-dist --snapshot + args: release --rm-dist env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}