cli
cli copied to clipboard
Create automatic tags for branch
This is something that the CLI can determine easily, and that it would be good to add tags for by default. We already have the concept of detecting the repo, so I don't see why we couldn't add this automatically too. Also this was requested by a customer
There are a number of things that would be useful here on a platform-specific basis. Here are the docs for each:
- https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables#default-environment-variables
- https://www.jenkins.io/doc/book/pipeline/jenkinsfile/#using-environment-variables
- https://docs.gitlab.com/ee/ci/variables/predefined_variables.html
- https://circleci.com/docs/variables/
- https://docs.spacelift.io/concepts/configuration/environment
I'm thinking I should go through these are refactor the repo detection to be a bit more generic and allow for detecting tags too