2023-02-22 19:54:31 +08:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -eu
|
|
|
|
|
2023-02-22 20:31:13 +08:00
|
|
|
: "${DISTRIBUTION_VERSION:=2}"
|
2023-02-22 19:54:31 +08:00
|
|
|
: "${DISTRIBUTION_HOST:=localhost}"
|
|
|
|
: "${DISTRIBUTION_PORT:=8080}"
|
|
|
|
|
2023-02-22 20:31:13 +08:00
|
|
|
echo "::group::Starting registry:${DISTRIBUTION_VERSION}"
|
2023-02-22 19:54:31 +08:00
|
|
|
(
|
|
|
|
set -x
|
2023-02-22 20:31:13 +08:00
|
|
|
docker run -d --name registry -p "${DISTRIBUTION_PORT}:5000" "registry:${DISTRIBUTION_VERSION}"
|
2023-02-22 19:54:31 +08:00
|
|
|
)
|
|
|
|
echo "::endgroup::"
|