ci: apk 换阿里镜像源装 buildah——runner 在阿里云,dl-cdn 直连卡死
This commit is contained in:
1 parent
6c257133ed
commit
99e8de3512
1 file changed
+5
-1
@@ -27,7 +27,11 @@ jobs:
|
|||||||
ls apps/tutorial/Dockerfile
|
ls apps/tutorial/Dockerfile
|
||||||
|
|
||||||
- name: 装 buildah(runner 无 docker;buildah 无 daemon 即可构建)
|
- name: 装 buildah(runner 无 docker;buildah 无 daemon 即可构建)
|
||||||
run: command -v buildah >/dev/null || apk add --no-cache buildah
|
run: |
|
||||||
|
command -v buildah >/dev/null && exit 0
|
||||||
|
# 服务器在阿里云——apk 走阿里镜像源(dl-cdn 直连极慢)
|
||||||
|
sed -i 's#https://dl-cdn.alpinelinux.org#https://mirrors.aliyun.com#g' /etc/apk/repositories
|
||||||
|
apk add --no-cache buildah
|
||||||
|
|
||||||
- name: buildah 登录阿里云镜像仓(基座为私有 idealjs/node)
|
- name: buildah 登录阿里云镜像仓(基座为私有 idealjs/node)
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in new issue
Block a user