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"]