Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #10029
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Hans-Christoph Steiner <hans@guardianproject.info> |
| Newsgroups | linux.debian.maint.python |
| Subject | GitLab CI on salsa.debian.org |
| Date | Tue, 09 Jan 2018 19:40:02 +0100 |
| Message-ID | <v66Yy-7Fj-1@gated-at.bofh.it> (permalink) |
| X-Original-To | debian-python@lists.debian.org |
| X-Mailbox-Line | From debian-python-request@lists.debian.org Tue Jan 9 18:36:10 2018 |
| Old-Return-Path | <hans@guardianproject.info> |
| X-Amavis-Spam-Status | No, score=-1.999 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, UNPARSEABLE_RELAY=0.001] autolearn=no autolearn_force=no |
| X-Policyd-Weight | using cached result; rate: -5 |
| X-Greylist | delayed 453 seconds by postgrey-1.36 at bendel; Tue, 09 Jan 2018 18:18:20 UTC |
| Organization | Guardian Project |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Language | en-US |
| Content-Transfer-Encoding | 8bit |
| X-Mailing-List | <debian-python@lists.debian.org> archive/latest/15424 |
| List-ID | <debian-python.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-python/> |
| List-Archive | https://lists.debian.org/msgid-search/e25b4620-fad1-94d1-5354-86352270da5e@guardianproject.info |
| Approved | robomod@news.nic.it |
| Lines | 46 |
| Sender | robomod@news.nic.it |
| X-Original-Date | Tue, 9 Jan 2018 19:08:12 +0100 |
| X-Original-Message-ID | <e25b4620-fad1-94d1-5354-86352270da5e@guardianproject.info> |
| Xref | csiph.com linux.debian.maint.python:10029 |
Show key headers only | View raw
One great addition that GitLab gives us is CI builds with custom Docker
images, which will run the whole build/test process for each merge
request. For example:
https://salsa.debian.org/eighthave/python-vagrant/-/jobs/4005
I have set up a prototype Docker image for running git-buildpackage
builds automatically. This Docker image is built and deployed using
Gitlab CI (albeit on gitlab.com):
https://gitlab.com/eighthave/ci-image-git-buildpackage
Then any git-buildpackage package can be built by doing this:
* put git project on salsa
* In Settings -> CI/CD -> General pipelines settings ->
Custom CI config path, set it to: debian/.gitlab-ci.yml
* include debian/.gitlab-ci.yml in the git repo with this contents:
image: registry.gitlab.com/eighthave/ci-image-git-buildpackage:latest
build:
artifacts:
paths:
- *.deb
expire_in: 1 day
script:
- /gitlab-ci-git-buildpackage
- dpkg -i ../*.deb || apt-get install -f
- mv ../*.deb .
I think we can do a lot of automation in the Docker image, like some of
the stuff I've already done in ci-image-git-buildpackage. If someone
knows how to get ENTRYPOINT and/or CMD working with GitLab CI, then
/gitlab-ci-git-buildpackage could be run automatically.
.hc
--
PGP fingerprint: EE66 20C7 136B 0D2C 456C 0A4D E9E2 8DEA 00AA 5556
https://pgp.mit.edu/pks/lookup?op=vindex&search=0xE9E28DEA00AA5556
Back to linux.debian.maint.python | Previous | Next — Next in thread | Find similar | Unroll thread
GitLab CI on salsa.debian.org Hans-Christoph Steiner <hans@guardianproject.info> - 2018-01-09 19:40 +0100
Re: GitLab CI on salsa.debian.org Hans-Christoph Steiner <hans@at.or.at> - 2018-03-21 15:40 +0100
Re: GitLab CI on salsa.debian.org Diane Trout <diane@ghic.org> - 2018-03-21 17:40 +0100
Re: GitLab CI on salsa.debian.org Hans-Christoph Steiner <hans@at.or.at> - 2018-03-21 23:30 +0100
csiph-web