run-setup-build.yml 677 B

1234567891011121314151617181920212223242526272829
  1. ---
  2. # Run setup and build code
  3. - name: Creat bash profile file
  4. command: 'touch /home/ubuntu/.bash_profile'
  5. - name: Run setup script
  6. command: ./setup.sh
  7. args:
  8. chdir: '{{ remote_code_path }}'
  9. - name: Build joystream node
  10. shell: . ~/.bash_profile && yarn cargo-build
  11. args:
  12. chdir: '{{ remote_code_path }}'
  13. # Run in async fashion for max duration of 1 hr
  14. async: 3600
  15. poll: 0
  16. register: build_result
  17. - name: Check on build async task
  18. async_status:
  19. jid: '{{ build_result.ansible_job_id }}'
  20. register: job_result
  21. until: job_result.finished
  22. # Max number of times to check for status
  23. retries: 36
  24. # Check for the status every 100s
  25. delay: 100