-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
testflinger cli promote snap stable (#426)
* 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 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.
- Loading branch information
Showing
2 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Promote testflinger-cli snap to stable | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
snap: | ||
description: 'Snap name' | ||
default: 'testflinger-cli' | ||
required: true | ||
type: string | ||
from-channel: | ||
description: 'Channel to promote from' | ||
default: 'latest/beta' | ||
required: true | ||
type: string | ||
to-channel: | ||
description: 'Channel to promote to' | ||
default: 'latest/stable' | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
promote-snap: | ||
runs-on: ubuntu-latest | ||
env: | ||
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAP_STORE_LOGIN }} | ||
steps: | ||
- name: Install Snapcraft | ||
run: sudo snap install snapcraft --classic | ||
- name: Promote testflinger-cli beta to stable | ||
run: snapcraft promote ${{ inputs.snap }} --from-channel ${{ inputs.from-channel }} --to-channel ${{ inputs.to-channel }} --yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters