Skip to content

create auto-tag policy system #4

@CrimsonFez

Description

@CrimsonFez

Currently auto tagging is based on git tag semver. It would be cool if we could have a system to define tagging policies based on current branch and git tag.

For example this policy would always set the tag 'latest' on the main branch and attempt to parse semver info from the git tag.

tag_policies:
- branch: main
  static_tags: [latest]
  git_tag_semver: true

This policy would set the static tag 'dev' on the dev branch.

...
- branch: dev
  static_tags: [dev]

By creating a system in which the end user defines their own policy, we avoid forcing people to use a specific way of setting tags when they use plugin-buildah.

This is an underdeveloped idea I have for the future of the project. Any comments are welcome.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesthelp wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions