beacon-node-builds: add README, remove unused batches

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2020-11-08 22:50:32 +01:00
parent 7888b4379e
commit f484a8617f
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
4 changed files with 31 additions and 5 deletions

View File

@ -0,0 +1,31 @@
# Description
This role configures a set of Systemd timers that build configured branches of [nimbus-eth2]() and push the built docker images.
# Configuration
The minimal configuration would look something like:
```yaml
# Branch to build and frequency
beacon_node_builds_branches:
- name: 'xyz'
branch: 'feature/xyz'
frequency: '*-*-* 02:00:00'
# Required to push Docker images
beacon_node_builds_docker_hub_user: 'docker-hub-user'
beacon_node_builds_docker_hub_token: 'super-secret-password'
```
# Management
You can check the status of the timers using:
```
> sudo systemctl list-timers 'beacon-node-build-*'
NEXT LEFT LAST PASSED UNIT ACTIVATES
Mon 2020-11-09 02:00:00 UTC 4h 12min left Sun 2020-11-08 02:00:01 UTC 19h ago beacon-node-build-master.timer beacon-node-build-master.service
Mon 2020-11-09 10:00:00 UTC 12h left Sun 2020-11-08 10:00:03 UTC 11h ago beacon-node-build-devel.timer beacon-node-build-devel.service
Mon 2020-11-09 18:00:00 UTC 20h left Sun 2020-11-08 18:00:04 UTC 3h 47min ago beacon-node-build-libp2p.timer beacon-node-build-libp2p.service
3 timers listed.
```

View File

@ -14,12 +14,9 @@ beacon_node_builds_branches:
- name: 'master' - name: 'master'
branch: 'master' branch: 'master'
frequency: '*-*-* 02:00:00' frequency: '*-*-* 02:00:00'
batches: [ 'a', 'b' ]
- name: 'devel' - name: 'devel'
branch: 'devel' branch: 'devel'
frequency: '*-*-* 10:00:00' frequency: '*-*-* 10:00:00'
batches: [ 'a', 'b' ]
- name: 'libp2p' - name: 'libp2p'
branch: 'nim-libp2p-auto-bump' branch: 'nim-libp2p-auto-bump'
frequency: '*-*-* 18:00:00' frequency: '*-*-* 18:00:00'
batches: [ 'a', 'b' ]

View File

@ -40,7 +40,6 @@
group: 'adm' group: 'adm'
mode: 0644 mode: 0644
- name: Create timer for rebuilding image - name: Create timer for rebuilding image
include_role: name=systemd-timer include_role: name=systemd-timer
vars: vars:

View File

@ -9,7 +9,6 @@ if [[ "${USER}" != "{{ beacon_node_builds_user }}" ]]; then
fi fi
IMAGE="{{ beacon_node_builds_image_name }}:{{ item.name }}" IMAGE="{{ beacon_node_builds_image_name }}:{{ item.name }}"
BATCHES=({{ item.batches | join(" ") }})
# Build the Beacon node binaries # Build the Beacon node binaries
{ {