Skip to content

Commit

Permalink
New edge -> beta promotion workflow (infra) (#873)
Browse files Browse the repository at this point in the history
New edge -> beta promotion workflow
  • Loading branch information
Hook25 authored Dec 6, 2023
1 parent 8d1f256 commit b33caf9
Showing 1 changed file with 86 additions and 0 deletions.
86 changes: 86 additions & 0 deletions .github/workflows/checkbox-beta-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
name: Beta version of checkbox
run-name: Promote edge versions of checkbox to beta

on:
workflow_dispatch:

jobs:
release-notes:
runs-on: [self-hosted, linux, large]
steps:
- name: Checkout checkbox monorepo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup the gh repository and install gh
run: |
which curl || (sudo apt update && sudo apt install curl -y)
sudo curl https://cli.github.com/packages/githubcli-archive-keyring.gpg --output /usr/share/keyrings/githubcli-archive-keyring.gpg
sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg
gpg --import /usr/share/keyrings/githubcli-archive-keyring.gpg
gpg --fingerprint "2C6106201985B60E6C7AC87323F3D4EA75716059"
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null
sudo apt update -qq
sudo apt install -qq -y gh
- name: Generate the github release note
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LP_CREDENTIALS: ${{ secrets.LP_CREDS }}
CHECKBOX_REPO: ${{ github.repository }}
run: |
gh release create $(git describe --tags --abbrev=0 --match v*) -d --generate-notes
checkbox_deb_packages:
name: Checkbox Debian packages
runs-on: [self-hosted, linux, large]
steps:
- name: Install dependencies
run: |
sudo apt update -qq
sudo apt install -qq -y python3-launchpadlib
- name: Checkout checkbox monorepo
uses: actions/checkout@v3
- name: Copy deb packages from edge to beta ppa
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LP_CREDENTIALS: ${{ secrets.LP_CREDS }}
CHECKBOX_REPO: ${{ github.repository }}
run: |
tools/release/lp_copy_packages.py checkbox-dev edge checkbox-dev beta
checkbox_core_snap:
name: Checkbox core snap packages
runs-on: [self-hosted, linux, large]
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT7_CREDS }}
steps:
- name: Setup Snapcraft
run: |
sudo snap install snapcraft --classic
- name: Promote checkbox core snaps to the beta channel
run: |
snapcraft promote checkbox16 --from-channel latest/edge --to-channel latest/beta --yes
snapcraft promote checkbox18 --from-channel latest/edge --to-channel latest/beta --yes
snapcraft promote checkbox20 --from-channel latest/edge --to-channel latest/beta --yes
snapcraft promote checkbox22 --from-channel latest/edge --to-channel latest/beta --yes
checkbox_snap:
name: Checkbox snap packages
runs-on: [self-hosted, linux, large]
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT7_CREDS }}
steps:
- name: Setup Snapcraft
run: |
sudo snap install snapcraft --classic
- name: Promote checkbox snaps to the beta channel
run: |
snapcraft promote checkbox --from-channel uc16/edge --to-channel uc16/beta --yes
snapcraft promote checkbox --from-channel uc18/edge --to-channel uc18/beta --yes
snapcraft promote checkbox --from-channel uc20/edge --to-channel uc20/beta --yes
snapcraft promote checkbox --from-channel uc22/edge --to-channel uc22/beta --yes
snapcraft promote checkbox --from-channel 16.04/edge --to-channel 16.04/beta --yes
snapcraft promote checkbox --from-channel 18.04/edge --to-channel 18.04/beta --yes
snapcraft promote checkbox --from-channel 20.04/edge --to-channel 20.04/beta --yes
snapcraft promote checkbox --from-channel 22.04/edge --to-channel 22.04/beta --yes
snapcraft promote checkbox --from-channel 22.04/edge --to-channel latest/beta --yes

0 comments on commit b33caf9

Please sign in to comment.