restrictions on OCI Recipe builds prevent us from building an image
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
New
|
Undecided
|
Unassigned |
Bug Description
We use OCI Recipe builds to build images and publish them to dockerhub for our k8s charms. We've just had a new release of Mattermost (v5.32.1) and would like to rerun our recipe build for Mattermost (https:/
There is 1 error: Branch does not match format 'applicationver
The recipe build us configured to use lp:charm-k8s-mattermost. Having the OCI Recipe build in the same repository and branch as the charm code means we can reuse our existing review infrastructure for this, and also that there's one place to go to get the charm code and the build instructions for the image that it uses.
After some explanation of the new approach I've been able to get this working. The extra step in our process is simply to tag a branch with a pattern following the required layout and configure the recipe to use it.
I think it's fine to close out this bug, but potentially some documentation (or a link to documentation) explaining a typical workflow could be added at the point where the error is surfaced.
In our case, as an example:
git clone lp:charm-k8s-mattermost mattermost
cd charm-k8s-
git checkout -b v5.32.1-20.04
git push lp:charm-k8s-mattermost
And then update the recipe to use refs/heads/ v5.32.1- 20.04.