Skip to content

Commit

Permalink
add labels to docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
Hsn723 committed Jan 30, 2024
1 parent 850fd4c commit 604d675
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
FROM scratch
LABEL org.opencontainers.image.source="https://github.com/hsn723/postfix_exporter" \
org.opencontainers.image.authors="Hsn723" \
org.opencontainers.image.title="postfix_exporter"
EXPOSE 9154
COPY postfix_exporter /
COPY LICENSE /
Expand Down
7 changes: 7 additions & 0 deletions cst.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,12 @@ fileExistenceTests:
permissions: "-rwxr-xr-x"
metadataTest:
entrypoint: ["/postfix_exporter"]
labels:
- key: "org.opencontainers.image.authors"
value: "Hsn723"
- key: "org.opencontainers.image.title"
value: "postfix_exporter"
- key: "org.opencontainers.image.source"
value: "https://github.com/hsn723/postfix_exporter"
licenseTests:
- files: ["/LICENSE"]

0 comments on commit 604d675

Please sign in to comment.