mirror of
https://gitea.com/docker/build-push-action.git
synced 2024-11-22 17:39:38 +01:00
ee5cabd9e3
Signed-off-by: Justin Chadwell <me@jedevc.com>
13 lines
No EOL
308 B
Bash
Executable file
13 lines
No EOL
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::" |