Conversation
This new input variable is a boolean, however it accepts 3 different values: false, true or not present. If present it will always take precendence over the tag with ref input variable. Signed-off-by: Felipe Santos <felipecassiors@gmail.com>
e26d0e5
to
2071a1b
Compare
I'm welcome to tips, dealing with nullable bool in Go is difficult. |
.vscode/extensions.json
Outdated
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations. | ||
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp | ||
|
||
// List of extensions which should be recommended for users of this workspace. | ||
"recommendations": ["golang.go"], | ||
// List of extensions recommended by VS Code that should not be recommended for users of this workspace. | ||
"unwantedRecommendations": [] | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this file does not belong to this repository as it is related to your local development environment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually this file was intended. It just tells people using VS Code that the Go Lang extension is recommended. https://code.visualstudio.com/docs/editor/extension-gallery#_workspace-recommended-extensions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can obviously remove according to your preference, but I thought it as a welcome addition.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not a maintainer of this repo, so my preference does not matter as much. I just thought that a developer's local development setup does not belong to a repo unless the repo itself dictates its development environment. If VIM, Emacs, Atom, and Sublime users start to add their project-specific configs then every repository will become a mess.
Should we change the API from boolean to a pattern? For example, |
I think boolean is still better since it gives the user all the freedom. For most docker images, the |
I think it will be a lot more intuitive for people who are coming from DockerHub automated builds setup to be able to target specific reference (tag or branch) using patterns to build as the However, if you insist on booleans, then I guess you can add two booleans instead of one nullable. |
Is there how to conditionally pass an input variable to an Action? |
I am not too sure about it, but even if it would be possible, documentation will be complicated. I still feel that making |
I think we'll need a third opinion on that. Further than only specifying something like |
I think it will be possible to filter alpha, beta, and release candidate versions out simply by using stricter patterns. For example, |
How about maintenance releases? The latest version can be v2.0.0, but a new maintenance release such as v1.5.2 can be released after v2.0.0, and it should not be tagged as latest. |
Signed-off-by: Felipe Santos <felipecassiors@gmail.com>
4a37d66
to
ab59681
Compare
Oh, I did not realize this scenario. You are right. I have an idea about this, say, we have a flag |
I support that and it deserves its own Issue. By the way, this is already supported by publish-docker: https://github.com/elgohr/Publish-Docker-Github-Action#tag_semver. |
Thanks for the PR but this action is now deprecated. Please take a look at the upgrade notes to move to the build-push action. |
This new input variable is a boolean, however, it accepts 3 different values:
false, true, or not present. If present it will always take precedence over
the tag with ref input variable.
Closes docker/build-push-action#40 and closes docker/build-push-action#43.