mirror of
https://github.com/docker/build-push-action.git
synced 2024-11-22 18:15:40 +01:00
Merge pull request #815 from jedevc/e2e-distribution-fixup
fixup! e2e: add distribution tests
This commit is contained in:
commit
a3ae207c14
6
.github/e2e/distribution/install.sh
vendored
6
.github/e2e/distribution/install.sh
vendored
@ -1,13 +1,13 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
: "${DISTRIBUTION_VERSION:=registry:2}"
|
: "${DISTRIBUTION_VERSION:=2}"
|
||||||
: "${DISTRIBUTION_HOST:=localhost}"
|
: "${DISTRIBUTION_HOST:=localhost}"
|
||||||
: "${DISTRIBUTION_PORT:=8080}"
|
: "${DISTRIBUTION_PORT:=8080}"
|
||||||
|
|
||||||
echo "::group::Starting ${DISTRIBUTION_VERSION}}"
|
echo "::group::Starting registry:${DISTRIBUTION_VERSION}"
|
||||||
(
|
(
|
||||||
set -x
|
set -x
|
||||||
docker run -d --name registry -p "5000:${DISTRIBUTION_PORT}" "${DISTRIBUTION_VERSION}"
|
docker run -d --name registry -p "${DISTRIBUTION_PORT}:5000" "registry:${DISTRIBUTION_VERSION}"
|
||||||
)
|
)
|
||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
3
.github/workflows/e2e.yml
vendored
3
.github/workflows/e2e.yml
vendored
@ -27,6 +27,7 @@ env:
|
|||||||
BUILDKIT_IMAGE: moby/buildkit:buildx-stable-1
|
BUILDKIT_IMAGE: moby/buildkit:buildx-stable-1
|
||||||
HARBOR_VERSION: v2.7.0
|
HARBOR_VERSION: v2.7.0
|
||||||
NEXUS_VERSION: 3.47.1
|
NEXUS_VERSION: 3.47.1
|
||||||
|
DISTRIBUTION_VERSION: 2.8.1
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -173,7 +174,7 @@ jobs:
|
|||||||
network=host
|
network=host
|
||||||
-
|
-
|
||||||
name: Login to Registry
|
name: Login to Registry
|
||||||
if: github.event_name != 'pull_request' && env.REGISTRY_USER != ''
|
if: github.event_name != 'pull_request' && (env.REGISTRY_USER || matrix.username_secret) != ''
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
registry: ${{ env.REGISTRY_FQDN || matrix.registry }}
|
registry: ${{ env.REGISTRY_FQDN || matrix.registry }}
|
||||||
|
Loading…
Reference in New Issue
Block a user