beacon-node-builds: keep only 3 days worth of builds

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2021-09-29 11:21:15 +02:00
parent 879a15b91f
commit c4e0f20fa1
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
3 changed files with 4 additions and 3 deletions

View File

@ -3,13 +3,14 @@ beacon_node_builds_user: 'nimbus'
beacon_node_builds_group: 'staff'
beacon_node_builds_path: '/data/beacon-node-builds'
beacon_node_builds_image_name: 'statusteam/nimbus_beacon_node'
beacon_node_builds_days_kept: 3
# Required for pushing the images
beacon_node_builds_docker_hub_user: ~
beacon_node_builds_docker_hub_token: ~
# Timers
beacon_node_build_timer_timeout: 3600
beacon_node_builds_timer_timeout: 3600
beacon_node_builds_branches: []
# - name: 'unstable'

View File

@ -55,6 +55,6 @@
systemd_timer_consul_warning: true
systemd_timer_enabled: '{{ item.enabled | default(true) }}'
systemd_timer_frequency: '{{ item.frequency | default("daily") }}'
systemd_timer_timeout_sec: '{{ beacon_node_build_timer_timeout }}'
systemd_timer_timeout_sec: '{{ beacon_node_builds_timer_timeout }}'
systemd_timer_work_dir: '{{ beacon_node_builds_path }}/{{ item.name }}'
systemd_timer_script_path: '{{ beacon_node_builds_path }}/{{ item.name }}/build.sh'

View File

@ -33,7 +33,7 @@ function buildBinaries() {
mv "build/nimbus_signing_process" "build/nimbus_signing_process_${COMMIT}"
# Delete copies that are older than 7 days
find build -mtime +7 -exec rm '{}' \+
find build -mtime +{{ beacon_node_builds_days_kept }} -exec rm '{}' \+
}
# Adds binary into a simple Alpine image