mirror of
https://github.com/elgohr/Publish-Docker-Github-Action.git
synced 2026-03-12 18:07:12 -04:00
15 lines
450 B
Docker
15 lines
450 B
Docker
FROM docker:20.10.8@sha256:ddf0d732dcbc3e2087836e06e50cc97e21bfb002a49c7d0fe767f6c31e01d65f as runtime
|
|
LABEL "repository"="https://github.com/elgohr/Publish-Docker-Github-Action"
|
|
LABEL "maintainer"="Lars Gohr"
|
|
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
|