ci: add debianize build pipeline#176
Draft
yedpodtrzitko wants to merge 3 commits intoreef-technologies:masterfrom
Draft
ci: add debianize build pipeline#176yedpodtrzitko wants to merge 3 commits intoreef-technologies:masterfrom
yedpodtrzitko wants to merge 3 commits intoreef-technologies:masterfrom
Conversation
| tags: backblaze/b2:${{ steps.build.outputs.version }} | ||
|
|
||
| debian-release: | ||
| name: Build Debian Package |
There was a problem hiding this comment.
let's skip this step if vars are missing
| type: string | ||
|
|
||
| env: | ||
| PYTHON_DEFAULT_VERSION: "3.11" |
There was a problem hiding this comment.
debian is probably decades away from supporting this python, I assume that's not a problem? like maybe some things here pass even though they are syntax errors in the version that debian is gonna use?
Author
There was a problem hiding this comment.
3.11 is actually the default version in the latest Debian.
But we run testsuite for all the supported Python versions (3.7+), so if anything would be misbehaving we'd find out there, no?
Co-authored-by: Michał Nowacki <77497496+mpnowacki-reef@users.noreply.github.com>
0dbad50 to
e75b19b
Compare
e75b19b to
a0bde3b
Compare
mpnowacki-reef
approved these changes
Jun 19, 2023
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
add Debian package build into pipeline
This was quite a bamboozle as the Debian building somehow feels like it does not behave deterministically - one day it is working certain way and when I pick it up the next day where I left it, it behaves differently.
Specifically - one day it was pinning the exact version of Debian dependencies. The next day it was not pinning them, and I couldnt reproduce the previous behaviour again. This made it easier for installation, but also it requires to:
b2sdkdependency intodebian/controlas the latest available version ofb2sdkDebian package is incompatible: (ImportError: cannot import name 'UploadMode' from 'b2sdk.v2'which was added latertl;dr - package build is working and it's uploaded into B2 bucket:
https://f005.backblazeb2.com/file/reef-b2-debian/python3-b2sdk_1.21.0-1_all.deb
https://f005.backblazeb2.com/file/reef-b2-debian/backblaze-b2_3.9.0-1_all.deb
Repo Setup
add the following pair of secrets for uploading the package into B2 bucket:
B2_DEBIAN_APPLICATION_KEY_IDB2_DEBIAN_APPLICATION_KEYadd the following environment variable to determine which B2 bucket upload will go to:
B2_DEBIAN_BUCKET_UPLOAD