Skip to content

添加docker配置#1290

Open
guohuiyuan wants to merge 12 commits intoFloatTech:masterfrom
guohuiyuan:master
Open

添加docker配置#1290
guohuiyuan wants to merge 12 commits intoFloatTech:masterfrom
guohuiyuan:master

Conversation

@guohuiyuan
Copy link
Contributor

No description provided.

Copy link
Member

@fumiama fumiama left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

为什么不用github自己的registry呢,又不用自己加secret,构建上传都很方便,fork之后不用任何修改即可上传到自己的命名空间。

- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个secret是你的?

rev.Stdout = &revOut
if rev.Run() == nil {
tag = strings.TrimSpace(revOut.String())
} else {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个和下面的else冗余了,直接在最后判断一次tag==""即可

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