ci: Dockerfile 基座切自家阿里云 idealjs/node:24.14.0-alpine(弃公共 daocloud);私有仓凭据入 secret ALIYUN_AUTH,build 前 buildah login
This commit is contained in:
1 parent
ecf2909b7a
commit
6c257133ed
2 files changed
+8
-2
No files matched your search
@@ -29,6 +29,12 @@ jobs:
|
||||
- name: 装 buildah(runner 无 docker;buildah 无 daemon 即可构建)
|
||||
run: command -v buildah >/dev/null || apk add --no-cache buildah
|
||||
|
||||
- name: buildah 登录阿里云镜像仓(基座为私有 idealjs/node)
|
||||
env:
|
||||
ALIYUN_AUTH: ${{ secrets.ALIYUN_AUTH }}
|
||||
run: |
|
||||
echo "$ALIYUN_AUTH" | buildah login --username "${ALIYUN_AUTH%%:*}" --password-stdin registry.cn-hangzhou.aliyuncs.com
|
||||
|
||||
- name: buildah 构建镜像(环境封装在 Dockerfile)
|
||||
run: |
|
||||
buildah build --storage-driver=vfs -f apps/tutorial/Dockerfile -t stack-tutorial:ci .
|
||||
|
||||
Reference in new issue
Block a user