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

feat: 调整镜像构建的tag,让最新代码指向latest,让每次版本指向日期 #144

Merged
merged 5 commits into from
Feb 27, 2023

Conversation

eryajf
Copy link
Contributor

@eryajf eryajf commented Feb 27, 2023

No description provided.

@eryajf
Copy link
Contributor Author

eryajf commented Feb 27, 2023

调整后的tags列表如下:

image

@Chanzhaoyu Chanzhaoyu added the type: feature 天呐,你真棒 label Feb 27, 2023
@Chanzhaoyu
Copy link
Owner

hello,有没有办法根据 GitHub 版本 Tag 推送而不是通过日期吗

@eryajf
Copy link
Contributor Author

eryajf commented Feb 27, 2023

已有头绪,容我稍稍调试下

@Chanzhaoyu
Copy link
Owner

已有头绪,容我稍稍调试下

没关系,在不影响主分支的情况下添加功能都可以,下个小版本合并

@eryajf
Copy link
Contributor Author

eryajf commented Feb 27, 2023

已调试OK,目前分支与release都支持触发,然后作为tag

@Chanzhaoyu
Copy link
Owner

已调试OK,目前分支与release都支持触发,然后作为tag

感谢

@Chanzhaoyu Chanzhaoyu merged commit 2c509c3 into Chanzhaoyu:main Feb 27, 2023
@eryajf
Copy link
Contributor Author

eryajf commented Feb 28, 2023

关于release触发action,并获取到版本号的问题,今天专门记了个笔记:使用 github-slug-action 泄漏 Github Action 上下文中的关键变量

suikodev referenced this pull request in AstraSurge/gpteams Mar 27, 2023
* feat: 调整镜像构建的tag,让最新代码指向latest,让每次版本指向日期

* feat: 触发时机为main分支push或者relases的create,镜像的tag为分支名或tag名

* fix: 修复变量引用方式

* fix: 修复变量引用方式

* fix: 使用github.ref_name 取触发action的来源
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature 天呐,你真棒
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants