-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unify versioning within Debian packages and with snaps (#402)
* Bump checkbox core snaps version: 2.1.dev → 2.3.dev * remove .dev suffix from snapcraft.yaml versions * new unified .bumpversion.cfg * deb version alignment * New bumpversion workflow * New deb beta workflow * Rename beta workflows * Update checkbox snaps and core snaps triggers The beta workflows will run when someone pushes a tag that starts with "v" * Remove unnecessary newline in .bumpversion.cfg
- Loading branch information
Showing
51 changed files
with
266 additions
and
640 deletions.
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,79 @@ | ||
[bumpversion] | ||
current_version = 2.3 | ||
parse = (?P<major>\d+)\.(?P<minor>\d+) | ||
serialize = {major}.{minor} | ||
search = version: '{current_version}' | ||
replace = version: '{new_version}' | ||
message = Bump version: {current_version} → {new_version} | ||
|
||
[bumpversion:file:checkbox-core-snap/series16/snap/snapcraft.yaml] | ||
|
||
[bumpversion:file:checkbox-core-snap/series18/snap/snapcraft.yaml] | ||
|
||
[bumpversion:file:checkbox-core-snap/series20/snap/snapcraft.yaml] | ||
|
||
[bumpversion:file:checkbox-core-snap/series22/snap/snapcraft.yaml] | ||
|
||
[bumpversion:file:checkbox-snap/series_uc16/snap/snapcraft.yaml] | ||
|
||
[bumpversion:file:checkbox-snap/series_uc18/snap/snapcraft.yaml] | ||
|
||
[bumpversion:file:checkbox-snap/series_uc20/snap/snapcraft.yaml] | ||
|
||
[bumpversion:file:checkbox-snap/series_uc22/snap/snapcraft.yaml] | ||
|
||
[bumpversion:file:checkbox-snap/series_classic18/snap/snapcraft.yaml] | ||
|
||
[bumpversion:file:checkbox-snap/series_classic16/snap/snapcraft.yaml] | ||
|
||
[bumpversion:file:checkbox-snap/series_classic20/snap/snapcraft.yaml] | ||
|
||
[bumpversion:file:checkbox-snap/series_classic22/snap/snapcraft.yaml] | ||
|
||
[bumpversion:file:checkbox-ng/setup.py] | ||
search = version="{current_version}" | ||
replace = version="{new_version}" | ||
|
||
[bumpversion:file:checkbox-ng/checkbox_ng/__init__.py] | ||
search = __version__ = '{current_version}' | ||
replace = __version__ = '{new_version}' | ||
|
||
[bumpversion:file:checkbox-ng/plainbox/__init__.py] | ||
search = __version__ = '{current_version}' | ||
replace = __version__ = '{new_version}' | ||
|
||
[bumpversion:file:checkbox-support/setup.py] | ||
search = version="{current_version}" | ||
replace = version="{new_version}" | ||
|
||
[bumpversion:file:providers/base/manage.py] | ||
search = version="{current_version}" | ||
replace = version="{new_version}" | ||
|
||
[bumpversion:file:providers/certification-client/manage.py] | ||
search = version="{current_version}" | ||
replace = version="{new_version}" | ||
|
||
[bumpversion:file:providers/certification-server/manage.py] | ||
search = version="{current_version}" | ||
replace = version="{new_version}" | ||
|
||
[bumpversion:file:providers/gpgpu/manage.py] | ||
search = version="{current_version}" | ||
replace = version="{new_version}" | ||
|
||
[bumpversion:file:providers/resource/manage.py] | ||
search = version="{current_version}" | ||
replace = version="{new_version}" | ||
|
||
[bumpversion:file:providers/sru/manage.py] | ||
search = version="{current_version}" | ||
replace = version="{new_version}" | ||
|
||
[bumpversion:file:providers/tpm2/manage.py] | ||
search = version="{current_version}" | ||
replace = version="{new_version}" | ||
|
||
[bumpversion:part:release] | ||
optional_value = RELEASE | ||
values = RELEASE |
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: Bump checkbox version | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
increment: | ||
description: 'release increment' | ||
default: 'minor' | ||
type: choice | ||
options: | ||
- minor | ||
- major | ||
|
||
jobs: | ||
Bumpversion: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install dependencies | ||
run: | | ||
sudo apt update -qq | ||
sudo apt install -qq -y bumpversion devscripts | ||
- name: Checkout checkbox monorepo | ||
uses: actions/checkout@v3 | ||
- name: Bump versions | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
DEBEMAIL: robot@canonical.com | ||
DEBFULLNAME: Devices Certification Bot | ||
run: | | ||
tools/release/bumpversion.sh ${{ inputs.increment }} |
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
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
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,27 @@ | ||
name: Beta version of deb packages | ||
run-name: Beta version of deb packages ${{ github.ref_name }} | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
Release: | ||
runs-on: ubuntu-latest | ||
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: Update the PPA recipes and kick-off the builds | ||
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 | ||
tools/release/release_deb_monorepo.py |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
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
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -24,4 +24,5 @@ | |
CheckBoxNG is a new version of CheckBox built on top of PlainBox | ||
""" | ||
|
||
__version__ = '2.2.0' | ||
__version__ = '2.3' | ||
|
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
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
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
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.