diff --git a/bats/Dockerfile b/bats/Dockerfile new file mode 100644 index 0000000..a8dcdf4 --- /dev/null +++ b/bats/Dockerfile @@ -0,0 +1,22 @@ +FROM debian:stable-slim + +LABEL "name"="bats" +LABEL "maintainer"="GitHub Actions " +LABEL "version"="1.0.0" + +LABEL "com.github.actions.name"="Bats for GitHub Actions" +LABEL "com.github.actions.description"="Bash Automated Testing System for Actions" +LABEL "com.github.actions.icon"="terminal" +LABEL "com.github.actions.color"="gray-dark" + +COPY LICENSE README.md THIRD_PARTY_NOTICE.md / + +RUN apt-get update && \ + apt-get install --no-install-recommends -y \ + bats && \ + apt-get clean -y && \ + rm -rf /var/lib/apt/lists/* + +COPY entrypoint.sh /entrypoint.sh + +ENTRYPOINT ["/entrypoint.sh"] diff --git a/bats/entrypoint.sh b/bats/entrypoint.sh new file mode 100644 index 0000000..071b037 --- /dev/null +++ b/bats/entrypoint.sh @@ -0,0 +1,3 @@ +#!/bin/sh -l + +sh -c "bats $*"