Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

charmcraft promote-charm command #1633

Open
lengau opened this issue Apr 8, 2024 · 6 comments
Open

charmcraft promote-charm command #1633

lengau opened this issue Apr 8, 2024 · 6 comments
Labels
Enhancement New feature or request

Comments

@lengau
Copy link
Collaborator

lengau commented Apr 8, 2024

What needs to get done

Promote a charm from one channel to another in a command.

This would be a charm version of promote-bundle.

Why it needs to get done

To match snapcraft and developer convenience.

@lengau lengau added the Enhancement New feature or request label Apr 8, 2024
Copy link

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/CRAFT-2708.

This message was autogenerated

@lengau
Copy link
Collaborator Author

lengau commented Apr 8, 2024

The logic already roughly exists in the promote-bundle command, it just needs to be made standalone:

# Get source channel charms

@sed-i
Copy link
Contributor

sed-i commented Apr 10, 2024

Yes please!

(Duplicates #836.)

@sed-i
Copy link
Contributor

sed-i commented Apr 10, 2024

It would be really great if there was also an extra flag to promote all risks of a given track. For example:

charmcraft promote-track latest prometheus-k8s

would promote all revisions to lower risks on the given track.

  1. candidate -> stable
  2. beta -> candidate
  3. edge -> beta

@alnvdl-work
Copy link

alnvdl-work commented Apr 19, 2024

As a note: it looks like the charming-actions/release-charm supports a way of doing this through GH Actions as well.
See: https://github.com/canonical/charming-actions/tree/main/release-charm

I didn't test it myself though.

@lucabello
Copy link

Any update on this? Some form of charmcraft promote would be very helpful, because currently bumping a set of charms to the lower risk tracks is quite cumbersome :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants