mirror of
https://github.com/docker/build-push-action.git
synced 2024-11-16 00:03:51 +08:00
13 lines
308 B
Bash
13 lines
308 B
Bash
|
#!/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::"
|