Browse Source

Make it work

master
meskio 3 years ago
parent
commit
589cc1508f
Signed by: meskio
GPG Key ID: 52B8F5AC97A2DA86
  1. 6
      README.md
  2. 2
      build_image
  3. 5
      playbook.yml
  4. 10
      webhook.conf

6
README.md

@ -0,0 +1,6 @@
Set a laminar CI to build your containers.
It will configure a webhook to listen in:
http://ip:9000/hooks/build\_image
The gitea of your organization should be configured to ping this url with {{ secret }} on each push event.

2
build_image

@ -1,3 +1,3 @@
#!/bin/sh
/usr/bin/laminarc queue build_image image=$1
LAMINAR_REASON=$1 /usr/bin/laminarc queue build_image image=$1

5
playbook.yml

@ -34,13 +34,14 @@
tasks:
- name: install laminar dependencies
# TODO: docker.io is in buster, but lib* are from stretch
apt: name={{ item }} state=latest
with_items:
apt:
name:
- gnupg
- libsqlite3-0
- libboost-filesystem1.62.0
- zlib1g
- docker.io
state: latest
- name: install laminar
apt:

10
webhook.conf

@ -16,12 +16,12 @@
{
"match":
{
"type": "payload-hash-sha1",
"secret": "{{ secret }}",
"type": "value",
"value": "{{ secret }}",
"parameter":
{
"source": "header",
"name": "X-Hub-Signature"
"source": "payload",
"name": "secret"
}
}
},
@ -29,7 +29,7 @@
"match":
{
"type": "value",
"value": "ref/heads/master",
"value": "refs/heads/master",
"parameter":
{
"source": "payload",

Loading…
Cancel
Save