修复 Docker 精确版本标签发布#37
Open
walker1211 wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
PR #36 合并后,项目发布了 GitHub/npm
v2.0.10,随后手动运行的 Docker workflow 只更新了latest,没有生成对应的2.0.10标签。原因是workflow_dispatch在main分支运行时没有 semver tag 上下文。修改
package.json版本和 npm 已发布版本。@wenyan-md/cli@<version>,避免补发旧版本时误装 npmlatest。latest,不额外维护会移动的 major/minor 标签。2.0.10 补发
本 PR 合并后,可手动运行 workflow 并填写
2.0.10,生成:caol64/wenyan-cli:2.0.10caol64/wenyan-cli:latest真正推送镜像仍由上游仓库使用
DOCKERHUB_TOKEN完成。验证
actionlint .github/workflows/docker-publish.ymlv2.0.10、package.json和 npm2.0.10一致WENYAN_CLI_VERSION=2.0.10构建镜像wenyan --version输出2.0.10wenyan serve --help包含--api-key-file