From 099a2014ce2e1da743e58c53ac16c6092583f929 Mon Sep 17 00:00:00 2001 From: louis Date: Fri, 4 Nov 2022 21:10:15 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=9A=20Adjust=20naming=20for=20Docker?= =?UTF-8?q?=20Image?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + .goreleaser.yml | 8 ++++---- Dockerfile | 6 +++--- 3 files changed, 8 insertions(+), 7 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..849ddff --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +dist/ diff --git a/.goreleaser.yml b/.goreleaser.yml index b288b92..b66863e 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -17,10 +17,10 @@ dockers: - goos: linux goarch: amd64 image_templates: - - "systemli/mastodon-exporter:{{ .Tag }}" - - "systemli/mastodon-exporter:{{ .Major }}" - - "systemli/mastodon-exporter:{{ .Major }}.{{ .Minor }}" - - "systemli/mastodon-exporter:latest" + - "systemli/prometheus-mastodon-exporter:{{ .Tag }}" + - "systemli/prometheus-mastodon-exporter:{{ .Major }}" + - "systemli/prometheus-mastodon-exporter:{{ .Major }}.{{ .Minor }}" + - "systemli/prometheus-mastodon-exporter:latest" checksum: name_template: "checksums.txt" snapshot: diff --git a/Dockerfile b/Dockerfile index 523a212..1aa0c0c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM alpine:3.16.2 as builder -WORKDIR /go/src/github.com/systemli/mastodon-exporter +WORKDIR /go/src/github.com/systemli/prometheus-mastodon-exporter ENV USER=appuser ENV UID=10001 @@ -21,10 +21,10 @@ FROM scratch COPY --from=builder /etc/passwd /etc/passwd COPY --from=builder /etc/group /etc/group COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt -COPY mastodon-exporter /mastodon-exporter +COPY prometheus-mastodon-exporter /prometheus-mastodon-exporter USER appuser:appuser EXPOSE 13120 -ENTRYPOINT ["/mastodon-exporter"] +ENTRYPOINT ["/prometheus-mastodon-exporter"]