mirror of
https://github.com/Luzifer/ots.git
synced 2024-12-18 03:54:38 -05:00
Use OCI Label defaults on Docker images (#145)
Co-authored-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
21f295cfc1
commit
142ca55074
@ -21,5 +21,8 @@ pre_commit_commands:
|
||||
- |-
|
||||
yq -iP ".services.app.build.context = \"https://github.com/Luzifer/ots.git#v${TAG_VERSION}\"" docker-compose.yml
|
||||
git add docker-compose.yml
|
||||
- |-
|
||||
sed -i -E "s@org.opencontainers.image.version='[^']*'@org.opencontainers.image.version='${TAG_VERSION}'@" Dockerfile Dockerfile.minimal
|
||||
git add Dockerfile Dockerfile.minimal
|
||||
|
||||
...
|
||||
|
@ -25,7 +25,12 @@ RUN set -ex \
|
||||
|
||||
FROM alpine:latest
|
||||
|
||||
LABEL maintainer "Knut Ahlers <knut@ahlers.me>"
|
||||
LABEL org.opencontainers.image.authors='Knut Ahlers <knut@ahlers.me>' \
|
||||
org.opencontainers.image.version='v1.11.1' \
|
||||
org.opencontainers.image.url='https://hub.docker.com/r/luzifer/ots/' \
|
||||
org.opencontainers.image.documentation='https://github.com/Luzifer/ots/wiki' \
|
||||
org.opencontainers.image.source='https://github.com/Luzifer/ots' \
|
||||
org.opencontainers.image.licenses='Apache-2.0'
|
||||
|
||||
RUN set -ex \
|
||||
&& apk --no-cache add \
|
||||
|
@ -25,7 +25,12 @@ RUN set -ex \
|
||||
|
||||
FROM scratch
|
||||
|
||||
LABEL maintainer "Knut Ahlers <knut@ahlers.me>"
|
||||
LABEL org.opencontainers.image.authors='Knut Ahlers <knut@ahlers.me>' \
|
||||
org.opencontainers.image.version='v1.11.1' \
|
||||
org.opencontainers.image.url='https://hub.docker.com/r/luzifer/ots/' \
|
||||
org.opencontainers.image.documentation='https://github.com/Luzifer/ots/wiki' \
|
||||
org.opencontainers.image.source='https://github.com/Luzifer/ots' \
|
||||
org.opencontainers.image.licenses='Apache-2.0'
|
||||
|
||||
COPY --from=builder /go/bin/ots /usr/local/bin/ots
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user