mirror of
https://github.com/docker/build-push-action.git
synced 2024-11-06 00:35:53 -05:00
4858a31f84
Signed-off-by: Justin Chadwell <me@jedevc.com>
13 lines
No EOL
316 B
Bash
Executable file
13 lines
No EOL
316 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -eu
|
|
|
|
: "${DISTRIBUTION_VERSION:=2}"
|
|
: "${DISTRIBUTION_HOST:=localhost}"
|
|
: "${DISTRIBUTION_PORT:=8080}"
|
|
|
|
echo "::group::Starting registry:${DISTRIBUTION_VERSION}"
|
|
(
|
|
set -x
|
|
docker run -d --name registry -p "${DISTRIBUTION_PORT}:5000" "registry:${DISTRIBUTION_VERSION}"
|
|
)
|
|
echo "::endgroup::" |