Github branches
Hi! I was wondering if there is a recommended way to fully utilize Github branches, if it's possible at all? In the past I've tried to create a branch and added extra tags in the recipe with something like
:testing
, and it built just fine, but rebasing to it wasn't possible, so I assumed it's only usable used to test & monitor builds.8 Replies
Good question, I was wondering how to do this as well
FYI, the error is like this:
The image builds successfully within the branch, assigned
alt-tags
(f.ex testing
, rawhide
) so they don't use latest
, and share the same cosign keys as the main
branch (which works and can be rebased to)Hard to say why that wouldn't work, it's certainly supposed to.
But FYI, BlueBuild adds branch-based tags without you having to set
alt-tags
.Thanks for the info! I think last time I tried, not setting
alt-tags
it overrode latest
, and since then I made sure to set alt-tags
myself. Not sure if I'm misremembering though. I'll give it a try without alt-tags
and see if it changes anything. Thank you!
And to be extra sure, my general procedure is (theoretically) already correct and I don't need to set up further things, like new cosign keys for the branches etc, right?That may have been a bug that was fixed, @Luke Skywunker would know better about this
Yes
Okay, so I think I've figured it out:
ghcr.io/owner/repo:branch
won't work but ghcr.io/owner/repo:br-branch
works, following the build finished messages.
For comparison, here is my main
/latest
build msg:
Here is my 42
branch build msg, without alt-tags
specified:
42
branch, with alt-tags: '42'
:
rawhide
branch, with alt-tags: 'rawhide'
:
I wrongly assumed that the produced image will be tagged :branch
... turns out it's pushed as br-branch
. I do use rechunk on Github though so I wonder if this is a factor, since building locally produces the following msg:
Yeah that's the expected setup for branch tags. Sorry for the late response, been driving across the country helping family move
Appreciate the confirmation! Good luck w/ the move