chore(workflow): add a workflow of github actions #63
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.
增加 GitHub Actions 配置用于自动打包多平台镜像并上传到 DockerHub。
合并到
Master
分支和添加标签都会触发 Action 操作,推送到Master
分支打包的镜像标签固定为latest
,如果是添加标签则会使用配置的标签作为镜像标签。配置
release
DOCKERHUB_TOKEN
:dockerhub 的个人访问凭证。需要添加到Environment secrets
中DOCKERHUB_USERNAME
:dockerhub 注册的用户名。添加到Environment variables
中(下同)IMAGE_NAME
:为配置的镜像名称MODEL_URL
(可选):为模型下载路径,默认为 https://github.com/Zeyi-Lin/HivisionIDPhotos/releases/download/pretrained-model/hivision_modnet.onnx示例
相关文档