enable creating current releases for Ubuntu and Fedora

While for the other platforms we can simply copy our binaries (maybe
after signing them), for Fedora and Ubuntu we have to trigger fresh
builds.

The most logical way that I could think of to do this was to push the
same commit corresponding with the intended current release into a
branch named 'current' and have that trigger Copr and Launchpad builds
that post into our release repos.

So 'master' keeps moving forward, keeps creating new build numbers.
At some point we pick a build number that we want to be the next
'current' release. We then update the current branch to the commit that
corresponds to that build number and push the current branch which
triggers new builds in the correct repos on Copr and Launchpad.

This commit removes the silly 'push' argument from the make-package
scripts (after all, they are used to push those packages to the
respective build services) and instead use the branch name as argument
to those scripts - allowing us to pick which repo to push into.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2024-01-27 16:28:15 -08:00
parent 4fdaf3e8de
commit 21095b18fc
4 changed files with 23 additions and 28 deletions

View file

@ -5,6 +5,7 @@ on:
- scripts/docker/**
branches:
- master
- current
jobs:
setup-build:
@ -52,5 +53,5 @@ jobs:
- name: run the copr build script
run: |
cd ..
bash -x subsurface/packaging/copr/make-package.sh post
bash -x subsurface/packaging/copr/make-package.sh ${{ github.refname }}

View file

@ -5,6 +5,7 @@ on:
- scripts/docker/**
branches:
- master
- current
jobs:
push-to-ppa:
@ -47,5 +48,5 @@ jobs:
- name: run the launchpad make-package script
run: |
cd ..
bash -x subsurface/packaging/ubuntu/make-package.sh post
bash -x subsurface/packaging/ubuntu/make-package.sh ${{ github.ref_name }}