build-push-action/.github/e2e/distribution/install.sh
Justin Chadwell ee5cabd9e3 e2e: add distribution tests
Signed-off-by: Justin Chadwell <me@jedevc.com>
2023-02-22 11:55:00 +00:00

13 lines
308 B
Bash
Executable File

#!/usr/bin/env bash
set -eu
: "${DISTRIBUTION_VERSION:=registry:2}"
: "${DISTRIBUTION_HOST:=localhost}"
: "${DISTRIBUTION_PORT:=8080}"
echo "::group::Starting ${DISTRIBUTION_VERSION}}"
(
set -x
docker run -d --name registry -p "5000:${DISTRIBUTION_PORT}" "${DISTRIBUTION_VERSION}"
)
echo "::endgroup::"