115 Commits

Author SHA1 Message Date
Chris Evich
341fbb8030 Fix kaniko command-line
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>
2022-11-16 09:46:19 -05:00
Chris Evich
64ce093a87 Ignore local pre-commit configuration files
Signed-off-by: Chris Evich <chris_gitlab@icuc.me>
2022-11-16 09:23:17 -05:00
Chris Evich
5daaa407c8 Tweak some tag defaults
Signed-off-by: Chris Evich <chris_gitlab@icuc.me>
2022-11-16 09:23:17 -05:00
Chris Evich
af48308a15 Merge branch 'set_name' into 'main'
Add runner-name build-arg

See merge request qontainers/pipglr!3
2022-11-16 14:05:06 +00:00
Chris Evich
98a0c4c9ab Merge branch 'upd_img_tag' into 'main'
Update image tagging w/ `mr` prefix for MRs

See merge request qontainers/pipglr!2
2022-11-16 14:04:45 +00:00
Chris Evich
9c95cf5074 Add runner-name build-arg
Signed-off-by: Chris Evich <chris_gitlab@icuc.me>
2022-11-16 08:53:48 -05:00
Chris Evich
952ff81c4f Update image tagging w/ mr prefix for MRs
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>
2022-11-13 18:45:10 -05:00
Chris Evich
8066716b67 Add background cleanup process
When given the "run" argument, in addition to launching `podman system
service` in the background, also start a small periodic maintenance
script.  It's only job is to clean up stale images, containers, and
volumes from old jobs.  Currently hard-coded to trigger every 2 days,
this could be tweaked via build-args or env. var.

Signed-off-by: Chris Evich <cevich@redhat.com>
2022-11-10 14:19:09 -05:00
Chris Evich
ba2dc82ac8 Fix disused session-port var in run label
Signed-off-by: Chris Evich <cevich@redhat.com>
2022-11-10 12:07:06 -05:00
Chris Evich
b9e5e066c8 Update documentation
Signed-off-by: Chris Evich <cevich@redhat.com>
2022-11-10 11:53:56 -05:00
Chris Evich
125d7cb9ac Tag images based on build context
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>
2022-11-10 11:47:20 -05:00
Chris Evich
fb9339f163 Merge branch 'latest_fedora' into 'main'
Use latest fedora image

See merge request qontainers/pipglr!1
v0.0.0-f36
2022-11-10 16:28:35 +00:00
Chris Evich
248a172756 Use latest fedora image
Signed-off-by: Chris Evich <cevich@redhat.com>
2022-11-10 11:21:39 -05:00
Chris Evich
a7f9f369ec Add CI/CD Configuration
Signed-off-by: Chris Evich <cevich@redhat.com>
2022-11-10 10:54:40 -05:00
Chris Evich
9f16ea6bec initial commit
Signed-off-by: Chris Evich <cevich@redhat.com>
2022-11-10 10:36:16 -05:00