3
0
Fork 0
mirror of https://gitea.com/docker/build-push-action.git synced 2024-11-23 09:59:38 +01:00
docker-build-push/.github/e2e/distribution/install.sh

13 lines
316 B
Bash
Raw Normal View History

#!/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::"