Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(workflow): add a workflow of github actions #63

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

swpfY
Copy link
Contributor

@swpfY swpfY commented Sep 6, 2024

增加 GitHub Actions 配置用于自动打包多平台镜像并上传到 DockerHub

合并到 Master 分支和添加标签都会触发 Action 操作,推送到 Master 分支打包的镜像标签固定为 latest,如果是添加标签则会使用配置的标签作为镜像标签。

配置

  1. 首先需要在仓库的 Settings / Environments 中添加一个环境,名称设置为 release
截屏2024-09-06 19 11 30
  1. 然后需要添加变量和密钥,其中包括:

如下图

截屏2024-09-06 19 16 08

示例

相关文档

@Zeyi-Lin Zeyi-Lin merged commit 3206401 into Zeyi-Lin:master Sep 6, 2024
@swpfY swpfY deleted the action branch September 6, 2024 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants