File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
packages/vyos-build-container Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 33
44cd 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} -arm64 ..."
7+ previousImageId=$( docker images --filter=reference=" vyos/vyos-build:${BRANCH_NAME} -arm64 " --format " {{.ID}}" )
88
9- echo " Building docker build container for branch ${BRANCH_NAME} ..."
10- docker build --no-cache -t " vyos/vyos-build:${BRANCH_NAME} " .
9+ echo " Building docker build container for branch ${BRANCH_NAME} -arm64 ..."
10+ docker build --no-cache -t " vyos/vyos-build:${BRANCH_NAME} -arm64 " --build-arg ARCH=arm64v8/ .
1111
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} "
12+ echo " Pushing ${BRANCH_NAME} -arm64 image to registry ${CUSTOM_DOCKER_REPO} ..."
13+ docker tag " vyos/vyos-build:${BRANCH_NAME} -arm64 " " ${CUSTOM_DOCKER_REPO} /vyos/vyos-build:${BRANCH_NAME} -arm64 "
1414docker push " ${CUSTOM_DOCKER_REPO} /vyos/vyos-build:$BRANCH_NAME "
1515
16- echo " Cleaning previous image of ${BRANCH_NAME} ..."
16+ echo " Cleaning previous image of ${BRANCH_NAME} -arm64 ..."
1717if [ " $previousImageId " != " " ]; then
1818 docker rmi --force " $previousImageId " || true
1919fi
2020
2121echo " Cleaning local registry..."
2222docker exec registry registry garbage-collect /etc/docker/registry/config.yml --delete-untagged=true
2323
24- echo " Image ${BRANCH_NAME} was successfully built and pushed to registry ${CUSTOM_DOCKER_REPO} ."
24+ echo " Image ${BRANCH_NAME} -arm64 was successfully built and pushed to registry ${CUSTOM_DOCKER_REPO} ."
You can’t perform that action at this time.
0 commit comments