释放
- 作者仓库星标 2,493
- 作者仓库 hoverfly
- 领域
- 工程开发
- 作者声明的智能体
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 运行环境证据
- 未执行;当前没有隔离运行测试证据
- 作者 / 版本 / 许可证
- @SpectoLabs · 未声明许可证
- 上下文用量评级
- 低消耗
- 接入复杂程度
- 需手动接入
- 是否需要外部接口密钥
- 不需要
- 兼容的系统
- Docker
- 运行环境要求
- Docker
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- 命令执行
- 网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
需要注意: 未声明工具权限范围;实际权限由运行环境决定。
第一阶段——版本提升和推送
验证 `$ARGUMENTS` 是否与模式 `vX.Y.Z` 匹配(例如 `v1.13.0`)。如果不是,请停止并向用户询问有效版本。验证工作树是否干净(`git status --porcelain`为空)并且当前分支为`master`。如果没有,请停止并告诉用户。运行: `make update-version VERSION=$ARGUMENTS` 推送: `git push origin master` 告诉用户版本提交已推送并且已触发 CircleCI 构建(无需等待)。
第 2 阶段 — 创建 GitHub 版本
使用自动生成的注释创建版本:向用户显示版本 URL。告诉用户这已经触发了 CircleCI `deploy-release` 作业,该作业将构建跨平台二进制文件和 Docker 镜像。这通常需要 20 多分钟。
第 3 阶段 — 等待发布资产
每分钟轮询一次,直到所有 7 个预期的 zip 包都出现在发布资产中。预期的文件是: `hoverfly_bundle_OSX_amd64.zip` `hoverfly_bundle_OSX_arm64.zip` `hoverfly_bundle_windows_amd64.zip` `hoverfly_bundle_windows_386.zip`
第 4 阶段 — 触发 Homebrew 更新
确认所有 7 个资产后: 触发 Homebrew 公式碰撞工作流程:告诉用户工作流程已被触发,他们需要在`SpectoLabs/homebrew-tap`中手动合并生成的 PR。
# Hoverfly Release
Release version: **$ARGUMENTS**
## Current state
- Current version: !`grep 'hoverfly.version' core/hoverfly.go | grep -o 'v[0-9]*\.[0-9]*\.[0-9]*'`
- Branch: !`git branch --show-current`
- Working tree clean: !`git status --porcelain | wc -l | xargs`
## Instructions
Execute the following phases in order. Confirm with the user before moving to each phase. Stop immediately if any step fails.
### Phase 1 — Version bump & push
1. **Validate** that `$ARGUMENTS` matches the pattern `vX.Y.Z` (e.g. `v1.13.0`). If not, stop and ask the user for a valid version.
2. **Verify** the working tree is clean (`git status --porcelain` is empty) and the current branch is `master`. If not, stop and tell the user.
3. Run: `make update-version VERSION=$ARGUMENTS`
4. Push: `git push origin master`
Tell the user the version commit has been pushed and that a CircleCI build has been triggered (no need to wait for it).
### Phase 2 — Create GitHub release
1. Create the release with auto-generated notes:
```
gh release create $ARGUMENTS --generate-notes --target master
```
2. Show the user the release URL.
3. Tell the user this has triggered the CircleCI `deploy-release` job, which will build cross-platform binaries and Docker images. This typically takes 20+ minutes.
### Phase 3 — Wait for release assets
Poll once per minute until **all 7** expected zip bundles appear in the release assets. The expected files are:
- `hoverfly_bundle_OSX_amd64.zip`
- `hoverfly_bundle_OSX_arm64.zip`
- `hoverfly_bundle_windows_amd64.zip`
- `hoverfly_bundle_windows_386.zip`
- `hoverfly_bundle_linux_amd64.zip`
- `hoverfly_bundle_linux_386.zip`
- `hoverfly_bundle_linux_arm64.zip`
To check, run:
```
gh release view $ARGUMENTS --json assets --jq '.assets[].name'
```
Each poll iteration:
- Count how many of the 7 expected files are present
- Report progress to the user: "X/7 assets uploaded..."
- Sleep 60 seconds between checks
- After 45 minutes with no completion, warn the user and ask whether to keep waiting
### Phase 4 — Trigger Homebrew update
Once all 7 assets are confirmed:
1. Trigger the Homebrew formula bump workflow:
```
gh workflow run homebrew-bump-formula.yml -f version=$ARGUMENTS
```
2. Tell the user the workflow has been triggered and they need to manually merge the resulting PR in `SpectoLabs/homebrew-tap`.
### Done
Summarize what was completed:
- Version bumped to `$ARGUMENTS`
- GitHub release created with auto-generated notes
- All 7 platform bundles uploaded by CircleCI
- Homebrew formula update triggered
- Remaining manual step: merge the PR in `SpectoLabs/homebrew-tap`
章节与文件索引
按说明文件中的顺序排列。
目前状态
第一阶段——版本提升和推送
第 2 阶段 — 创建 GitHub 版本
第 3 阶段 — 等待发布资产
第 4 阶段 — 触发 Homebrew 更新
文件/命令 -> grep 'hoverfly.version' core/hoverfly.go | grep -o 'v[0-9]*\.[0-9]*\.[0-9]*' · git branch --show-current · git status --porcelain | wc -l | xargs · $ARGUMENTS · vX.Y.Z · v1.13.0 · git status --porcelain · master
内容校验值 -> d828881576cf
当前原文的自动摘译,尚未人工审校。
目前状态
当前版本: !
grep 'hoverfly.version' core/hoverfly.go | grep -o 'v[0-9]*\.[0-9]*\.[0-9]*'分支: !git branch --show-current工作树清理: !git status --porcelain | wc -l | xargs第一阶段——版本提升和推送
验证
$ARGUMENTS是否与模式vX.Y.Z匹配(例如v1.13.0)。如果不是,请停止并向用户询问有效版本。验证工作树是否干净(git status --porcelain为空)并且当前分支为master。如果没有,请停止并告诉用户。运行:make update-version VERSION=$ARGUMENTS推送:git push origin master告诉用户版本提交已推送并且已触发CircleCI构建(无需等待)。第 3 阶段 — 等待发布资产
每分钟轮询一次,直到所有 7 个预期的 zip 包都出现在发布资产中。预期文件为:
hoverfly_bundle_OSX_amd64.ziphoverfly_bundle_OSX_arm64.ziphoverfly_bundle_windows_amd64.ziphoverfly_bundle_windows_386.zip