woodpecker workflows
报错:privileged
信任
yml
privileged: true
settings:
mirror: https://docker.1ms.run纯前端
yml
when:
branch:
- v1
event:
- push
- manual
steps:
构建项目:
image: node:22-bookworm
commands:
- corepack enable
- pnpm install --frozen-lockfile --registry https://registry.npmmirror.com
- rm -rf packages/main/public/panoramas
- cp -r /deploy/file-store/panoramas packages/main/public/
- pnpm build:local
local部署:
image: alpine:3.22
commands:
- mkdir -p /deploy/panorama
- rm -rf /deploy/panorama/*
- cp -r packages/main/dist/. /deploy/panorama/报错:plugin-docker-buildx
yml
when:
branch:
- pg-migrator
event:
- push
- manual
variables:
- &acr_registry registry.cn-chengdu.aliyuncs.com
- &migrator_image_repo registry.cn-chengdu.aliyuncs.com/qins-img/wanx-server-pg-migrator
- &buildkit_config deploy/prod/buildkitd.toml
steps:
BuildKit 配置检查:
image: alpine:3.22
commands:
- ls -l "$BUILDKIT_CONFIG"
- echo "===== buildkitd 配置内容 ====="
- cat "$BUILDKIT_CONFIG"
environment:
BUILDKIT_CONFIG: *buildkit_config
构建并推送 PG Migrator 镜像:
image: docker.io/woodpeckerci/plugin-docker-buildx:6.1.1
privileged: true
settings:
registry: *acr_registry
repo: *migrator_image_repo
dockerfile: deploy/prod/pg-migrator/Dockerfile
context: .
platforms: linux/amd64
buildkit_config: *buildkit_config
tags:
- latest
- ${CI_COMMIT_SHA}
username:
from_secret: aliyun_acr_username
password:
from_secret: aliyun_acr_passworddeploy/prod/buildkitd.toml
toml
# deploy/prod/buildkitd.toml
debug = true
[registry."docker.io"]
mirrors = ["docker.1ms.run"]
[registry."registry-1.docker.io"]
mirrors = ["docker.1ms.run"]