deploy-pioneer.yml 744 B

1234567891011121314151617181920212223242526
  1. ---
  2. # Build Pioneer, copy build artifacts and sync to S3
  3. - name: Set ws_rpc for build node
  4. set_fact:
  5. ws_rpc: "{{ hostvars[groups['rpc'][0]].ws_rpc }}"
  6. - name: Build Pioneer code
  7. shell: "WS_URL=wss://{{ ws_rpc }} yarn && yarn workspace @joystream/types build && yarn workspace pioneer build"
  8. args:
  9. chdir: "{{ remote_code_path }}"
  10. - name: Copying build files to local
  11. synchronize:
  12. src: "{{ remote_code_path }}/pioneer/packages/apps/build"
  13. dest: "{{ data_path }}"
  14. mode: pull
  15. run_once: true
  16. - name: Run S3 Sync to upload build files to bucket
  17. community.aws.s3_sync:
  18. bucket: "{{ bucket_name }}"
  19. file_root: "{{ data_path }}/build"
  20. profile: joystream-user
  21. region: us-east-1
  22. delegate_to: localhost