Skip to content

Commit

Permalink
chore: use REGISTRY_MIRROR_FLAGS if defined
Browse files Browse the repository at this point in the history
REGISTRY_MIRROR_FLAGS can be already defined in the environment with .env or .envrc file.
Use it for easier and faster local e2e tests.

Signed-off-by: Alexey Palazhchenko <alexey.palazhchenko@gmail.com>
  • Loading branch information
AlekSi authored and talos-bot committed Apr 19, 2021
1 parent 05cbe25 commit 9996d4b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hack/test/e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ function build_registry_mirrors {
REGISTRY_MIRROR_FLAGS="${REGISTRY_MIRROR_FLAGS} --registry-mirror ${registry}=http://${addr}:5000"
done
else
REGISTRY_MIRROR_FLAGS=
# use the value from the environment, if present
REGISTRY_MIRROR_FLAGS=${REGISTRY_MIRROR_FLAGS:-}
fi
}

0 comments on commit 9996d4b

Please sign in to comment.