fix: Drone 打包改用阿里云 Alpine 源,避免 apk 偶发失败
国内机访问 dl-cdn.alpinelinux.org 会 Permission denied,导致 bash/python3 装不上整包失败。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
4583c54568
commit
045ee8d0e3
1 file changed
+2
@@ -35,6 +35,8 @@ steps:
|
|||||||
ZKXW_DEPLOY_VERSION: v1.1.0
|
ZKXW_DEPLOY_VERSION: v1.1.0
|
||||||
commands:
|
commands:
|
||||||
- set -eu
|
- set -eu
|
||||||
|
# 国内机访问 dl-cdn.alpinelinux.org 偶发 Permission denied,改用阿里云镜像
|
||||||
|
- sed -i 's#dl-cdn.alpinelinux.org#mirrors.aliyun.com#g' /etc/apk/repositories
|
||||||
- apk add --no-cache bash git python3
|
- apk add --no-cache bash git python3
|
||||||
# 固定 v1.1.0;$${ } 防止 Drone 预处理把自定义变量掏空
|
# 固定 v1.1.0;$${ } 防止 Drone 预处理把自定义变量掏空
|
||||||
- export ZKXW_DEPLOY_VERSION="$${ZKXW_DEPLOY_VERSION:-v1.1.0}"
|
- export ZKXW_DEPLOY_VERSION="$${ZKXW_DEPLOY_VERSION:-v1.1.0}"
|
||||||
|
|||||||
Reference in new issue
Block a user