Skip to content

Commit

Permalink
Image labels (#9)
Browse files Browse the repository at this point in the history
* Add container description label

Signed-off-by: Dan Webb <dan.webb@damacus.io>

* Add image url and authors label

Signed-off-by: Dan Webb <dan.webb@damacus.io>
  • Loading branch information
damacus committed May 16, 2022
1 parent 3423260 commit e1dff89
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions Dockerfile
@@ -1,11 +1,18 @@
FROM python:slim

RUN pip install yamllint
ENV MATCHERS_DIR="._actionshub_problem-matchers"
ENV MATCHER_FILE="${MATCHERS_DIR}/yamllint.json"
LABEL org.opencontainers.image.description \
"Yamllint Action for GitHub Actions" \
org.opencontainers.image.url \
"https://github.com/actionshub/yamllint" \
org.opencontainers.image.authors \
"https://github.com/actionshub"

ENV MATCHERS_DIR="._actionshub_problem-matchers" \
MATCHER_FILE="${MATCHERS_DIR}/yamllint.json"

RUN mkdir -p ${MATCHERS_DIR}
COPY yamllint.json ${MATCHER_FILE}
RUN echo "::[add-matcher]${MATCHER_FILE}"
RUN pip install yamllint \
&& mkdir -p ${MATCHERS_DIR} \
&& echo "::[add-matcher]${MATCHER_FILE}"

ENTRYPOINT ["yamllint",".", "--format", "github"]

0 comments on commit e1dff89

Please sign in to comment.