worker-image-build

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Worker Image Build

Worker镜像构建

Build Firefox CI worker images by triggering GitHub Actions workflows.
通过触发GitHub Actions工作流来构建Firefox CI worker镜像。

Supported Workflows

支持的工作流

WorkflowNamePurpose
sig-nontrusted.yml
FXCI - AzureBuild untrusted Windows images
sig-trusted.yml
FXCI - Azure - TrustedBuild trusted Windows images
工作流名称用途
sig-nontrusted.yml
FXCI - Azure构建不可信Windows镜像
sig-trusted.yml
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-v6
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-v6

Trusted (FXCI - Azure - Trusted)

可信(FXCI - Azure - Trusted)

trusted-win11-a64-24h2-builder
trusted-win2022-64-2009
trusted-win11-a64-24h2-builder
trusted-win2022-64-2009

Trigger a Build

触发构建

bash
undefined
bash
undefined

Untrusted image

不可信镜像

gh workflow run "FXCI - Azure"
--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>

Trusted image

可信镜像

gh workflow run "FXCI - Azure - Trusted"
--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-alpha
gh workflow run "FXCI - Azure - Trusted"
--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-alpha

Check Build Status

检查构建状态

After triggering, get the run URL:
bash
undefined
触发构建后,获取运行URL:
bash
undefined

Get latest run for untrusted

获取最新的不可信镜像构建运行记录

gh run list --repo mozilla-platform-ops/worker-images
--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

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

Watch a specific run:

```bash
gh run watch <RUN_ID> --repo mozilla-platform-ops/worker-images
View run logs:
bash
gh run view <RUN_ID> --repo mozilla-platform-ops/worker-images --log
gh run list --repo mozilla-platform-ops/worker-images
--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 --log

Build Process

构建流程

  1. Access check against
    .github/relsre.json
  2. Azure login with FXCI credentials
  3. Packer build (30-60 min)
  4. SBOM generation
  5. Release notes PR created
  1. 对照
    .github/relsre.json
    进行权限检查
  2. 使用FXCI凭据登录Azure
  3. Packer构建(30-60分钟)
  4. SBOM生成
  5. 创建发布说明PR

Naming Conventions

命名规范

  • -alpha
    suffix: Test/staging images
  • No suffix: Production images
  • trusted-
    prefix: Trusted pool images
  • -a64-
    : ARM64 architecture
  • -64-
    : x64 architecture
  • tester
    /
    builder
    : Pool role
  • -alpha
    后缀:测试/预发布镜像
  • 无后缀:生产镜像
  • trusted-
    前缀:可信池镜像
  • -a64-
    :ARM64架构
  • -64-
    :x64架构
  • tester
    /
    builder
    :池角色

More Examples

更多示例

See references/examples.md for additional command examples.
查看references/examples.md获取更多命令示例。

Repository

仓库地址