Files
Publish-Docker-Github-Action/Dockerfile
elgohr 184d5f4bcf ♻️ Remove platforms options
Platform was in beta and turned out not to be usable.
This still needs some tinkering with Github actions, but this wouldn't happen here.
See https://github.com/actions/virtual-environments/issues/3090
2021-04-13 11:38:35 +02:00

20 lines
444 B
Docker

FROM docker:19.03.2 as runtime
LABEL "repository"="https://github.com/elgohr/Publish-Docker-Github-Action"
LABEL "maintainer"="Lars Gohr"
RUN apk update \
&& apk upgrade \
&& apk add --no-cache git
ADD entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
FROM runtime as testEnv
RUN apk add --no-cache coreutils bats
ADD test.bats /test.bats
ADD mock.sh /usr/local/bin/docker
ADD mock.sh /usr/bin/date
RUN /test.bats
FROM runtime