mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-07-28 20:59:30 +00:00
Remove legacy PROXY Envs in build system
Signed-off-by: Derek Nola <derek.nola@suse.com>
This commit is contained in:
@@ -14,10 +14,6 @@ REPO=${REPO:-rancher}
|
||||
IMAGE_NAME=${IMAGE_NAME:-k3s}
|
||||
|
||||
IMAGE=${REPO}/${IMAGE_NAME}:${TAG}
|
||||
PROXY_OPTS=
|
||||
[ -z "$http_proxy" ] || PROXY_OPTS="$PROXY_OPTS --build-arg http_proxy=$http_proxy"
|
||||
[ -z "$https_proxy" ] || PROXY_OPTS="$PROXY_OPTS --build-arg https_proxy=$https_proxy"
|
||||
[ -z "$no_proxy" ] || PROXY_OPTS="$PROXY_OPTS --build-arg no_proxy=$no_proxy"
|
||||
docker build ${PROXY_OPTS} --build-arg DRONE_TAG=${VERSION_TAG} -t ${IMAGE} -f package/Dockerfile .
|
||||
docker build --build-arg DRONE_TAG=${VERSION_TAG} -t ${IMAGE} -f package/Dockerfile .
|
||||
./scripts/image_scan.sh ${IMAGE} ${ARCH}
|
||||
echo Built ${IMAGE}
|
||||
|
||||
Reference in New Issue
Block a user