Skip to content

Commit

Permalink
add OCI labels to Docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
Ondřej Benkovský committed Jan 14, 2024
1 parent dbd8e60 commit 26c342a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,14 @@ dockers:
- "ghcr.io/tantalor93/dnspyre:v{{ .Major }}"
- "ghcr.io/tantalor93/dnspyre:v{{ .Major }}.{{ .Minor }}"
- "ghcr.io/tantalor93/dnspyre:latest"
build_flag_templates:
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.authors=Ondřej Benkovský <[email protected]>"
- "--label=org.opencontainers.image.url=https://tantalor93.github.io/dnspyre"
- "--label=org.opencontainers.image.documentation=https://tantalor93.github.io/dnspyre"
- "--label=org.opencontainers.image.source=https://github.com/Tantalor93/dnspyre"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.licenses=MIT"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.description=tool for a high QPS DNS benchmark"
1 change: 0 additions & 1 deletion Dockerfile-goreleaser
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ FROM alpine:latest as certs
RUN apk --update add ca-certificates

FROM scratch
LABEL org.opencontainers.image.source=https://github.com/tantalor93/dnspyre
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY dnspyre /dnspyre
ENTRYPOINT ["/dnspyre"]

0 comments on commit 26c342a

Please sign in to comment.