fix: add more OCI spec labels
This commit is contained in:
@@ -70,8 +70,17 @@ RUN set -Eeuxo pipefail \
|
|||||||
&& rm -rf /tmp/* \
|
&& rm -rf /tmp/* \
|
||||||
&& printf "Cleaned up image\n"
|
&& printf "Cleaned up image\n"
|
||||||
|
|
||||||
# > Home repository
|
ARG BUILD_TAG_VERSION="master"
|
||||||
LABEL org.opencontainers.image.source="https://github.com/catthehacker/docker_images"
|
ARG BUILD_TAG="act"
|
||||||
|
ARG BUILD_REF="master"
|
||||||
|
|
||||||
|
LABEL org.opencontainers.image.vendor="catthehacker"
|
||||||
|
LABEL org.opencontainers.image.authors="me@hackerc.at"
|
||||||
|
LABEL org.opencontainers.image.url="https://github.com/catthehacker/docker_images"
|
||||||
|
LABEL org.opencontainers.image.source="https://github.com/catthehacker/docker_images.git"
|
||||||
|
LABEL org.opencontainers.image.version=${BUILD_TAG_VERSION}
|
||||||
|
LABEL org.opencontainers.image.title=${BUILD_TAG}
|
||||||
|
LABEL org.opencontainers.image.revision=${BUILD_REF}
|
||||||
|
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
|
|||||||
@@ -85,8 +85,18 @@ RUN set -Eeuxo pipefail && \
|
|||||||
printf "runner user: $(su - ${RUNNER_USER} -c id)\n" && \
|
printf "runner user: $(su - ${RUNNER_USER} -c id)\n" && \
|
||||||
printf "Created non-root user $(grep ${RUNNER_USER} /etc/passwd)\n"
|
printf "Created non-root user $(grep ${RUNNER_USER} /etc/passwd)\n"
|
||||||
|
|
||||||
# > Home repository
|
ARG BUILD_TAG_VERSION="master"
|
||||||
LABEL org.opencontainers.image.source="https://github.com/catthehacker/docker_images"
|
ARG BUILD_TAG="runner"
|
||||||
|
ARG BUILD_REF="master"
|
||||||
|
|
||||||
|
LABEL org.opencontainers.image.vendor="catthehacker"
|
||||||
|
LABEL org.opencontainers.image.authors="me@hackerc.at"
|
||||||
|
LABEL org.opencontainers.image.url="https://github.com/catthehacker/docker_images"
|
||||||
|
LABEL org.opencontainers.image.source="https://github.com/catthehacker/docker_images.git"
|
||||||
|
LABEL org.opencontainers.image.version=${BUILD_TAG_VERSION}
|
||||||
|
LABEL org.opencontainers.image.title=${BUILD_TAG}
|
||||||
|
LABEL org.opencontainers.image.revision=${BUILD_REF}
|
||||||
|
|
||||||
|
|
||||||
# > Don't run as root, generally not good idea
|
# > Don't run as root, generally not good idea
|
||||||
USER ${RUNNER_USER}:${RUNNER_USER}
|
USER ${RUNNER_USER}:${RUNNER_USER}
|
||||||
|
|||||||
Reference in New Issue
Block a user