Skip to content

Commit e30dbb2

Browse files
committed
dr
Signed-off-by: acejilam <[email protected]>
1 parent 17ccd3a commit e30dbb2

File tree

4 files changed

+19
-16
lines changed

4 files changed

+19
-16
lines changed

packages/linux-kernel/Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,4 @@ def pkgList = [
7272
]
7373

7474
// Start package build using library function from https://github.com/vyos/vyos-build
75-
buildPackage('Kernel', pkgList, null, true, "(.*packages/linux-kernel/.+|.*data/defaults.+)", "ec2_amd64", "REGEXP")
75+
buildPackage('Kernel', pkgList, null, true, "(.*packages/linux-kernel/.+|.*data/defaults.+)", "ec2_arm64", "REGEXP")

packages/telegraf/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22
CWD=$(pwd)
3-
set -e
4-
3+
set -ex
4+
export GOPROXY=https://goproxy.cn/,direct
55
BUILD_ARCH=$(dpkg-architecture -qDEB_TARGET_ARCH)
66

77
SRC=telegraf

packages/vyos-build-container/Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pipeline {
3030
stages {
3131
stage('Build') {
3232
agent {
33-
label "ec2_amd64"
33+
label "ec2_arm64"
3434
}
3535
when {
3636
anyOf {

packages/vyos-build-container/build.sh

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,23 @@ set -e
33

44
cd vyos-build/docker
55

6-
echo "Inspecting current image of ${BRANCH_NAME}..."
7-
previousImageId=$(docker images --filter=reference="vyos/vyos-build:${BRANCH_NAME}" --format "{{.ID}}")
6+
#echo "Inspecting current image of ${BRANCH_NAME}..."
7+
#previousImageId=$(docker images --filter=reference="vyos/vyos-build:${BRANCH_NAME}" --format "{{.ID}}")
8+
#
9+
#echo "Building docker build container for branch ${BRANCH_NAME}..."
10+
#docker build --no-cache -t "vyos/vyos-build:${BRANCH_NAME}" --build-arg ARCH=arm64v8/ .
11+
#
12+
docker pull registry.cn-hangzhou.aliyuncs.com/ls-2018/vyos-build:sagitta-arm64-dd010101
813

9-
echo "Building docker build container for branch ${BRANCH_NAME}..."
10-
docker build --no-cache -t "vyos/vyos-build:${BRANCH_NAME}" .
11-
12-
echo "Pushing ${BRANCH_NAME} image to registry ${CUSTOM_DOCKER_REPO}..."
13-
docker tag "vyos/vyos-build:${BRANCH_NAME}" "${CUSTOM_DOCKER_REPO}/vyos/vyos-build:${BRANCH_NAME}"
14+
#echo "Pushing ${BRANCH_NAME} image to registry ${CUSTOM_DOCKER_REPO}..."
15+
docker tag registry.cn-hangzhou.aliyuncs.com/ls-2018/vyos-build:sagitta-arm64-dd010101 "${CUSTOM_DOCKER_REPO}/vyos/vyos-build:${BRANCH_NAME}"
1416
docker push "${CUSTOM_DOCKER_REPO}/vyos/vyos-build:$BRANCH_NAME"
15-
16-
echo "Cleaning previous image of ${BRANCH_NAME}..."
17-
if [ "$previousImageId" != "" ]; then
18-
docker rmi --force "$previousImageId" || true
19-
fi
17+
#
18+
#echo "Cleaning previous image of ${BRANCH_NAME}..."
19+
#if [ "$previousImageId" != "" ]; then
20+
# docker rmi --force "$previousImageId" || true
21+
#fi
22+
docker rmi registry.cn-hangzhou.aliyuncs.com/ls-2018/vyos-build:sagitta-arm64-dd010101
2023

2124
echo "Cleaning local registry..."
2225
docker exec registry registry garbage-collect /etc/docker/registry/config.yml --delete-untagged=true

0 commit comments

Comments
 (0)