- Improve the build of the image by introducing `build.sh`.
It can be used with `podman` or `buildah` and
also provides a way of building a `dev` or `prod`
image for development purposes by
`build.sh [dev|prod]`.
- CI runs this script as well with `buildah`.
Signed-off-by: Gabriel Nützi <gnuetzi@gmail.com>
For whatever reason the `docker`/`linux` tags do not appear in the list
of public runners. Update to values actually present, guessing at their
meaning.
Signed-off-by: Chris Evich <cevich@redhat.com>
as default container tag name for uploading, because branch names can
includes characters that aren't valid for tags (such as '/').
Signed-off-by: Andreas Hartmann <hartan@7x.de>
They were preventing builds on main and on tags. Rather than try and
debug them, just kill them as they're mostly unnecessary for this repo.
Signed-off-by: Chris Evich <chris_gitlab@icuc.me>
Observations show the runtime is about the same (since performance is mostly
storage-io bound. However, buildah images are more compact and there
are simpler possibilities for build-caching available for future use.
Signed-off-by: Chris Evich <chris_gitlab@icuc.me>
This CI environment is using a busybox `sh` so doesn't support all the
advanced features of bash. Reimplement IMAGE_TAG processing so it
functions as intended.
Signed-off-by: Chris Evich <chris_gitlab@icuc.me>
It's often hard to debug/maintain/improve a job when you can't observe
any of the (many!) auto-generated CI env. vars. Print them all out on
every job.
Signed-off-by: Chris Evich <chris_gitlab@icuc.me>
For whatever reason, line-breaks must be used regardless of
string-block marker `|` or `>-`. Fix this.
Also, support a fork/pull/MR model allowing contributors to run
pipelines on their fork w/ push to their registry. In this case, images
should be tagged by MR number to be helpful.
Signed-off-by: Chris Evich <chris_gitlab@icuc.me>
Prevent any possiblilty of confusion for tags (prefixed with a `v`) vs MR tags
(previously no prefix).
Signed-off-by: Chris Evich <chris_gitlab@icuc.me>
For tag-pipelines, tag image with the repo. tag
For MR's, tag the image with the MR number
For Branches, use the branch name except for `main` use `latest`.
Signed-off-by: Chris Evich <cevich@redhat.com>