feat: add commands to .goreleaser.yml only if requested #562
+237
−10
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.
Please read CONTRIBUTING.md for additional information on contributing to this repository!
What this PR does / why we need it
related to #561 - it this one is approved, just please close the other one.
This is introducing ability to specify the command should have asset, otherwise, it's not built.
Only CLI tools like clerkcli, devenv, orc need it, so it'll be added there. The rest of the services don't need to build the binaries and assets. This saves build time on CircleCI and also storage of Assets in GitHub.
Discussed in Slack
One example:
apiproxy service has couple of CLI commands but there's no need to have a build of them locally. It's possible to run them via
go run
locally and in the pod, it's provided by Dockerfile.Every release contains 4 tar.gz files with the
tools
binary which is never used.Jira ID
[XX-XX]
Notes for your reviewers