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

ci: add debianize build pipeline #176

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

yedpodtrzitko
Copy link

@yedpodtrzitko yedpodtrzitko commented Jun 19, 2023

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:

tl;dr - package build is working and it's uploaded into B2 bucket:

Repo Setup

  • add the following pair of secrets for uploading the package into B2 bucket:

    • B2_DEBIAN_APPLICATION_KEY_ID
    • B2_DEBIAN_APPLICATION_KEY
  • add the following environment variable to determine which B2 bucket upload will go to:

    • B2_DEBIAN_BUCKET_UPLOAD

@@ -158,3 +158,10 @@ jobs:
context: .
push: true
tags: backblaze/b2:${{ steps.build.outputs.version }}

debian-release:
name: Build Debian Package

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's skip this step if vars are missing

type: string

env:
PYTHON_DEFAULT_VERSION: "3.11"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

CHANGELOG.md Outdated Show resolved Hide resolved
b2/arg_parser.py Show resolved Hide resolved
Co-authored-by: Michał Nowacki <77497496+mpnowacki-reef@users.noreply.github.com>
@yedpodtrzitko yedpodtrzitko marked this pull request as draft July 13, 2023 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants