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

testflinger cli promote snap stable #426

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

plars
Copy link
Collaborator

@plars plars commented Dec 9, 2024

  • Add a github workflow to promote testflinger-cli snap from beta to stable
  • When originally publishing the snap, push it to both edge and beta

Description

This introduces a workflow that allows promoting the testflinger-cli snap to stable.

We already have a workflow that publishes the snap to edge, but this modifies it slightly to also publish to beta. This is because the snapcraft promote command doesn't allow you to start on edge for some reason. So the only way to promote it, is to start on some channel other than edge.

I made this flexible, so that you can specify the channels if you want, or just in case we ever want to reuse it.

Resolved issues

N/A

Documentation

N/A

Web service API changes

N/A

Tests

https://github.com/canonical/testflinger/actions/runs/12242201005

plars added 2 commits December 9, 2024 12:47
We later use a workflow to promote the snap to stable, but snapcraft
does not allow publishing from the edge channel at all, it must be
pushed to another channel in order to allow promotion.
@plars plars requested a review from a team December 9, 2024 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant