[Libre-soc-bugs] [Bug 190] Setup Gitlab CI Runner for Kazan on a computer

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Tue Jul 21 23:22:35 BST 2020


https://bugs.libre-soc.org/show_bug.cgi?id=190

--- Comment #16 from Jacob Lifshay <programmerjake at gmail.com> ---
(In reply to Cole Poirier from comment #15)
> Thanks Jacob, that's very helpful. Can you break this down into a list of
> tasks? i.e. what needs to be done first and how you recommend I should do
> it? I would do this myself, but I don't have your knowledge.

1. Add post-receive git hooks to git.libre-soc.org that mirror repos to debian
salsa.

2. Write email-sending script and set it up to be run by gitlab-ci-archiver:
create config.toml file based on
https://salsa.debian.org/Kazan-team/gitlab-ci-archiver/-/blob/master/example-config.toml

and change the email.command entry to something like:
[email]
command = ["/path/to/send-email.sh"]

and create a shell script send-email.sh containing the commands to create and
send the emails as required. All of the values it needs to know are passed in
using environment variables starting with GITLAB_CI_ARCHIVER_; the build log is
passed in on the standard input -- so you'd probably want to run `tail -n 50`
to get the last 50 lines of the build log to include in the email. the full
build log is included in the git commit to the build archiving repo, so you
don't need to save all of it.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list