build-code.yml 628 B

1234567891011121314151617181920212223
  1. ---
  2. - name: Get latest Joystream code and build it
  3. hosts: all
  4. vars:
  5. # branch_name can be sha1, tag, branch
  6. branch_name: "master"
  7. tasks:
  8. - name: Creat bash profile file
  9. command: "touch /home/ubuntu/.bash_profile"
  10. - name: Git checkout
  11. ansible.builtin.git:
  12. repo: 'https://github.com/Joystream/joystream.git'
  13. dest: ~/joystream
  14. version: "{{ branch_name }}"
  15. - name: Run setup script
  16. command: ./setup.sh
  17. args:
  18. chdir: ~/joystream
  19. - name: Build joystream node
  20. shell: . ~/.bash_profile && yarn cargo-build
  21. args:
  22. chdir: ~/joystream