diff options
Diffstat (limited to 'packages')
-rw-r--r-- | packages/vyos-build-container/Jenkinsfile | 3 | ||||
-rwxr-xr-x | packages/vyos-build-container/build.sh | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/packages/vyos-build-container/Jenkinsfile b/packages/vyos-build-container/Jenkinsfile index eb61b5b5..1b554fff 100644 --- a/packages/vyos-build-container/Jenkinsfile +++ b/packages/vyos-build-container/Jenkinsfile @@ -21,6 +21,9 @@ pipeline { agent none + parameters { + string(name: 'ELTS_MIRROR', defaultValue: 'http://172.17.17.17:3142/deb.freexian.com/extended-lts', description: 'You can apt install apt-cacher-ng and then replace 172.17.17.17 with your local IP or provide your own ELTS mirror.') + } options { disableConcurrentBuilds() timeout(time: 240, unit: 'MINUTES') diff --git a/packages/vyos-build-container/build.sh b/packages/vyos-build-container/build.sh index 5a526220..f91a326a 100755 --- a/packages/vyos-build-container/build.sh +++ b/packages/vyos-build-container/build.sh @@ -7,7 +7,8 @@ echo "Inspecting current image of ${BRANCH_NAME}..." previousImageId=$(docker images --filter=reference="vyos/vyos-build:${BRANCH_NAME}" --format "{{.ID}}") echo "Building docker build container for branch ${BRANCH_NAME}..." -docker build --no-cache -t "vyos/vyos-build:${BRANCH_NAME}" . +docker build --build-arg "ELTS_MIRROR=${ELTS_MIRROR}" \ + --no-cache -t "vyos/vyos-build:${BRANCH_NAME}" . echo "Pushing ${BRANCH_NAME} image to registry ${CUSTOM_DOCKER_REPO}..." docker tag "vyos/vyos-build:${BRANCH_NAME}" "${CUSTOM_DOCKER_REPO}/vyos/vyos-build:${BRANCH_NAME}" |