Skip to content

Commit beba9d4

Browse files
committed
feat: add harbor-offline aarch64 images #1510
1 parent a70abc9 commit beba9d4

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

ezdown

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,13 @@ function get_sys_pkg() {
330330
function get_harbor_offline_pkg() {
331331
[[ -f "$BASE/down/harbor-offline-installer-$HARBOR_VER.tgz" ]] && { logger warn "harbor-offline existed"; return 0; }
332332

333-
docker run --rm -v "$BASE/down":/tmp/out "easzlab/harbor-offline:$HARBOR_VER" \
334-
sh -c "cp /harbor-offline-installer-$HARBOR_VER.tgz /tmp/out/"
333+
if [[ "$ARCH" == aarch64 ]];then
334+
docker run --rm -v "$BASE/down":/tmp/out "easzlab/harbor-offline:${HARBOR_VER}-aarch64" \
335+
sh -c "cp /harbor-offline-installer-$HARBOR_VER.tgz /tmp/out/"
336+
else
337+
docker run --rm -v "$BASE/down":/tmp/out "easzlab/harbor-offline:$HARBOR_VER" \
338+
sh -c "cp /harbor-offline-installer-$HARBOR_VER.tgz /tmp/out/"
339+
fi
335340
}
336341

337342
function get_default_images() {

0 commit comments

Comments
 (0)