🚚 Adjust naming for Docker Image
This commit is contained in:
parent
0221785b25
commit
099a2014ce
3 changed files with 8 additions and 7 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
dist/
|
|
@ -17,10 +17,10 @@ dockers:
|
||||||
- goos: linux
|
- goos: linux
|
||||||
goarch: amd64
|
goarch: amd64
|
||||||
image_templates:
|
image_templates:
|
||||||
- "systemli/mastodon-exporter:{{ .Tag }}"
|
- "systemli/prometheus-mastodon-exporter:{{ .Tag }}"
|
||||||
- "systemli/mastodon-exporter:{{ .Major }}"
|
- "systemli/prometheus-mastodon-exporter:{{ .Major }}"
|
||||||
- "systemli/mastodon-exporter:{{ .Major }}.{{ .Minor }}"
|
- "systemli/prometheus-mastodon-exporter:{{ .Major }}.{{ .Minor }}"
|
||||||
- "systemli/mastodon-exporter:latest"
|
- "systemli/prometheus-mastodon-exporter:latest"
|
||||||
checksum:
|
checksum:
|
||||||
name_template: "checksums.txt"
|
name_template: "checksums.txt"
|
||||||
snapshot:
|
snapshot:
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
FROM alpine:3.16.2 as builder
|
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 USER=appuser
|
||||||
ENV UID=10001
|
ENV UID=10001
|
||||||
|
@ -21,10 +21,10 @@ FROM scratch
|
||||||
COPY --from=builder /etc/passwd /etc/passwd
|
COPY --from=builder /etc/passwd /etc/passwd
|
||||||
COPY --from=builder /etc/group /etc/group
|
COPY --from=builder /etc/group /etc/group
|
||||||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
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
|
USER appuser:appuser
|
||||||
|
|
||||||
EXPOSE 13120
|
EXPOSE 13120
|
||||||
|
|
||||||
ENTRYPOINT ["/mastodon-exporter"]
|
ENTRYPOINT ["/prometheus-mastodon-exporter"]
|
||||||
|
|
Loading…
Reference in a new issue