worker-image-build
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseWorker Image Build
Worker镜像构建
Build Firefox CI worker images by triggering GitHub Actions workflows.
通过触发GitHub Actions工作流来构建Firefox CI worker镜像。
Supported Workflows
支持的工作流
| Workflow | Name | Purpose |
|---|---|---|
| FXCI - Azure | Build untrusted Windows images |
| FXCI - Azure - Trusted | Build trusted Windows images |
| 工作流 | 名称 | 用途 |
|---|---|---|
| FXCI - Azure | 构建不可信Windows镜像 |
| FXCI - Azure - Trusted | 构建可信Windows镜像 |
Available Configs
可用配置
Untrusted (FXCI - Azure)
不可信(FXCI - Azure)
win10-64-2009-alpha win10-64-2009
win11-64-2009-alpha win11-64-2009
win11-64-24h2-alpha win11-64-24h2
win11-64-24h2-alpha-v6
win11-a64-24h2-tester-alpha win11-a64-24h2-tester
win11-a64-24h2-builder-alpha win11-a64-24h2-builder
win2022-64-2009-alpha win2022-64-2009
win2022-64-2009-alpha-v6win10-64-2009-alpha win10-64-2009
win11-64-2009-alpha win11-64-2009
win11-64-24h2-alpha win11-64-24h2
win11-64-24h2-alpha-v6
win11-a64-24h2-tester-alpha win11-a64-24h2-tester
win11-a64-24h2-builder-alpha win11-a64-24h2-builder
win2022-64-2009-alpha win2022-64-2009
win2022-64-2009-alpha-v6Trusted (FXCI - Azure - Trusted)
可信(FXCI - Azure - Trusted)
trusted-win11-a64-24h2-builder
trusted-win2022-64-2009trusted-win11-a64-24h2-builder
trusted-win2022-64-2009Trigger a Build
触发构建
bash
undefinedbash
undefinedUntrusted image
不可信镜像
gh workflow run "FXCI - Azure"
--repo mozilla-platform-ops/worker-images
-f config=<CONFIG_NAME>
--repo mozilla-platform-ops/worker-images
-f config=<CONFIG_NAME>
gh workflow run "FXCI - Azure"
--repo mozilla-platform-ops/worker-images
-f config=<CONFIG_NAME>
--repo mozilla-platform-ops/worker-images
-f config=<CONFIG_NAME>
Trusted image
可信镜像
gh workflow run "FXCI - Azure - Trusted"
--repo mozilla-platform-ops/worker-images
-f config=<CONFIG_NAME>
--repo mozilla-platform-ops/worker-images
-f config=<CONFIG_NAME>
Example:
```bash
gh workflow run "FXCI - Azure" \
--repo mozilla-platform-ops/worker-images \
-f config=win11-64-24h2-alphagh workflow run "FXCI - Azure - Trusted"
--repo mozilla-platform-ops/worker-images
-f config=<CONFIG_NAME>
--repo mozilla-platform-ops/worker-images
-f config=<CONFIG_NAME>
示例:
```bash
gh workflow run "FXCI - Azure" \
--repo mozilla-platform-ops/worker-images \
-f config=win11-64-24h2-alphaCheck Build Status
检查构建状态
After triggering, get the run URL:
bash
undefined触发构建后,获取运行URL:
bash
undefinedGet latest run for untrusted
获取最新的不可信镜像构建运行记录
gh run list --repo mozilla-platform-ops/worker-images
--workflow "FXCI - Azure" --limit 1
--json databaseId,url,status,createdAt
--workflow "FXCI - Azure" --limit 1
--json databaseId,url,status,createdAt
gh run list --repo mozilla-platform-ops/worker-images
--workflow "FXCI - Azure" --limit 1
--json databaseId,url,status,createdAt
--workflow "FXCI - Azure" --limit 1
--json databaseId,url,status,createdAt
Get latest run for trusted
获取最新的可信镜像构建运行记录
gh run list --repo mozilla-platform-ops/worker-images
--workflow "FXCI - Azure - Trusted" --limit 1
--json databaseId,url,status,createdAt
--workflow "FXCI - Azure - Trusted" --limit 1
--json databaseId,url,status,createdAt
Watch a specific run:
```bash
gh run watch <RUN_ID> --repo mozilla-platform-ops/worker-imagesView run logs:
bash
gh run view <RUN_ID> --repo mozilla-platform-ops/worker-images --loggh run list --repo mozilla-platform-ops/worker-images
--workflow "FXCI - Azure - Trusted" --limit 1
--json databaseId,url,status,createdAt
--workflow "FXCI - Azure - Trusted" --limit 1
--json databaseId,url,status,createdAt
监控特定运行记录:
```bash
gh run watch <RUN_ID> --repo mozilla-platform-ops/worker-images查看运行日志:
bash
gh run view <RUN_ID> --repo mozilla-platform-ops/worker-images --logBuild Process
构建流程
- Access check against
.github/relsre.json - Azure login with FXCI credentials
- Packer build (30-60 min)
- SBOM generation
- Release notes PR created
- 对照进行权限检查
.github/relsre.json - 使用FXCI凭据登录Azure
- Packer构建(30-60分钟)
- SBOM生成
- 创建发布说明PR
Naming Conventions
命名规范
- suffix: Test/staging images
-alpha - No suffix: Production images
- prefix: Trusted pool images
trusted- - : ARM64 architecture
-a64- - : x64 architecture
-64- - /
tester: Pool rolebuilder
- 后缀:测试/预发布镜像
-alpha - 无后缀:生产镜像
- 前缀:可信池镜像
trusted- - :ARM64架构
-a64- - :x64架构
-64- - /
tester:池角色builder
More Examples
更多示例
See references/examples.md for additional command examples.
查看references/examples.md获取更多命令示例。