run-build.yml 552 B

1234567891011121314151617181920212223
  1. ---
  2. # Build code
  3. - name: Build joystream node
  4. shell: . ~/.bash_profile && yarn cargo-build
  5. args:
  6. chdir: '{{ remote_code_path }}'
  7. environment:
  8. RUNTIME_PROFILE: '{{ runtime_profile }}'
  9. # Run in async fashion for max duration of 1 hr
  10. async: 3600
  11. poll: 0
  12. register: build_result
  13. - name: Check on build async task
  14. async_status:
  15. jid: '{{ build_result.ansible_job_id }}'
  16. register: job_result
  17. until: job_result.finished
  18. # Max number of times to check for status
  19. retries: 36
  20. # Check for the status every 100s
  21. delay: 100