From 657d0b32618dd73f683b6103e2d091b522274036 Mon Sep 17 00:00:00 2001 From: Hasan Hakkaev Date: Thu, 8 Jun 2023 17:24:56 +0200 Subject: [PATCH] fix binary name in dockerfile --- Dockerfile | 6 +++--- goreleaser.Dockerfile | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index ac1c6e0..b8355eb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,12 +12,12 @@ RUN go mod download -x COPY . . # Build -RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o=./glab-runner-cleaner . +RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o=./gitlab-runner-cleaner . FROM cgr.dev/chainguard/static:latest WORKDIR /app -COPY --from=builder /src/glab-runner-cleaner . +COPY --from=builder /src/gitlab-runner-cleaner . USER 65532:65532 -CMD ["./glab-runner-cleaner"] +CMD ["./gitlab-runner-cleaner"] diff --git a/goreleaser.Dockerfile b/goreleaser.Dockerfile index e1474b1..be3e3b2 100644 --- a/goreleaser.Dockerfile +++ b/goreleaser.Dockerfile @@ -1,5 +1,5 @@ FROM cgr.dev/chainguard/static:latest -COPY glab-runner-cleaner /usr/bin/glab-runner-cleaner +COPY gitlab-runner-cleaner /usr/bin/gitlab-runner-cleaner -ENTRYPOINT ["/usr/bin/glab-runner-cleaner"] +ENTRYPOINT ["/usr/bin/gitlab-runner-cleaner"]