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
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/cli-promote-snap.yml
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
8 changes: 7 additions & 1 deletion .github/workflows/cli-publish-snap.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish Testflinger CLI snap to edge
name: Publish Testflinger CLI snap to edge and beta
on:
push:
branches: ["main"]
Expand All @@ -21,3 +21,9 @@ jobs:
with:
snap: ${{ steps.build.outputs.snap }}
release: edge
- uses: snapcore/action-publish@v1
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAP_STORE_LOGIN }}
with:
snap: ${{ steps.build.outputs.snap }}
release: beta