mirror of
https://github.com/docker/build-push-action.git
synced 2025-04-19 01:46:45 +00:00
e2e: add distribution tests
Signed-off-by: Justin Chadwell <me@jedevc.com>
This commit is contained in:
parent
7944f9a25b
commit
ee5cabd9e3
3 changed files with 23 additions and 1 deletions
5
.github/e2e/distribution/env
vendored
Normal file
5
.github/e2e/distribution/env
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
REGISTRY_FQDN=localhost:8080
|
||||
REGISTRY_SLUG=localhost:8080/test-docker-action
|
||||
|
||||
DISTRIBUTION_HOST=localhost
|
||||
DISTRIBUTION_PORT=8080
|
13
.github/e2e/distribution/install.sh
vendored
Executable file
13
.github/e2e/distribution/install.sh
vendored
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/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::"
|
Loading…
Add table
Add a link
Reference in a new issue