rename tasks/schedule to tasks/build, use relative path

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2021-07-22 17:03:59 +02:00
parent 50ba26f5dc
commit 337bda905d
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
4 changed files with 8 additions and 9 deletions

View File

@ -10,7 +10,6 @@ beacon_node_service_exe: '{{ beacon_node_service_bin_path }}\nimbus_beacon_node.
beacon_node_repo_url: 'https://github.com/status-im/nimbus-eth2.git'
beacon_node_repo_branch: 'stable'
beacon_node_repo_path: '{{ beacon_node_service_path }}\repo'
beacon_node_build_script: '{{ beacon_node_service_path }}\build.sh'
beacon_node_build_frequency: 'daily'
beacon_node_build_start_time: '01:00:00'

View File

@ -1,4 +1,10 @@
---
- name: Create build script
win_template:
src: 'build.sh.j2'
dest: '{{ beacon_node_service_path }}\build.sh'
mode: 0750
- name: Schedule and start node builds
win_scheduled_task:
description: 'Daily rebuild of Nimbus beacon node binaries'
@ -6,7 +12,7 @@
username: SYSTEM
actions:
- path: 'C:\ProgramData\scoop\apps\git\current\bin\bash.exe'
arguments: '-c "{{ beacon_node_build_script }} > .\build.log 2>&1"'
arguments: '-c "./build.sh > build.log 2>&1"'
working_directory: '{{ beacon_node_service_path }}'
triggers:
- type: '{{ beacon_node_build_frequency }}'

View File

@ -49,9 +49,3 @@
win_reboot:
reboot_timeout: 160
when: machine_path.changed
- name: Create build script
win_template:
src: 'build.sh.j2'
dest: '{{ beacon_node_build_script }}'
mode: 0750

View File

@ -2,7 +2,7 @@
- import_tasks: checks.yml
- import_tasks: user.yml
- import_tasks: install.yml
- import_tasks: schedule.yml
- import_tasks: build.yml
- import_tasks: service.yml
- import_tasks: validators.yml
when: beacon_node_dist_validators_enabled