perf: route registry traffic through LAN instead of internet
Use internal registry at 10.10.10.10:5050 instead of git.daddelolymp.de which routes through Pangolin proxy over internet (40Mbit bottleneck). All layer cache pulls/pushes and image pushes now stay on LAN.
This commit is contained in:
parent
852bda73f6
commit
8d663f2392
1 changed files with 63 additions and 61 deletions
|
|
@ -2,7 +2,8 @@ stages:
|
||||||
- build
|
- build
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
IMAGE_NAME: "$CI_REGISTRY/$CI_PROJECT_PATH"
|
INTERNAL_REGISTRY: "10.10.10.10:5050"
|
||||||
|
IMAGE_NAME: "$INTERNAL_REGISTRY/$CI_PROJECT_PATH"
|
||||||
CI_SERVER_URL: "http://10.10.10.10:9080"
|
CI_SERVER_URL: "http://10.10.10.10:9080"
|
||||||
GITLAB_FEATURES: ""
|
GITLAB_FEATURES: ""
|
||||||
|
|
||||||
|
|
@ -19,7 +20,7 @@ docker-build:
|
||||||
cat > /kaniko/.docker/config.json <<EOF
|
cat > /kaniko/.docker/config.json <<EOF
|
||||||
{
|
{
|
||||||
"auths": {
|
"auths": {
|
||||||
"$CI_REGISTRY": {
|
"$INTERNAL_REGISTRY": {
|
||||||
"username": "$CI_REGISTRY_USER",
|
"username": "$CI_REGISTRY_USER",
|
||||||
"password": "$CI_REGISTRY_PASSWORD"
|
"password": "$CI_REGISTRY_PASSWORD"
|
||||||
}
|
}
|
||||||
|
|
@ -58,4 +59,5 @@ docker-build:
|
||||||
--build-arg "VITE_APP_VERSION=$VERSION" \
|
--build-arg "VITE_APP_VERSION=$VERSION" \
|
||||||
--cache=true \
|
--cache=true \
|
||||||
--cache-repo="$IMAGE_NAME/cache" \
|
--cache-repo="$IMAGE_NAME/cache" \
|
||||||
|
--insecure-registry=$INTERNAL_REGISTRY \
|
||||||
$DESTINATIONS
|
$DESTINATIONS
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue