1234567891011121314151617181920212223242526272829303132333435363738 |
- ---
- # Build Pioneer, copy build artifacts and sync to S3
- - name: Set ws_rpc for build node
- set_fact:
- ws_rpc: "{{ hostvars[groups['rpc'][0]].ws_rpc }}"
- - name: Build Pioneer code
- shell: "WS_URL=wss://{{ ws_rpc }} yarn && yarn workspace @joystream/types build && yarn workspace pioneer build"
- args:
- chdir: "{{ remote_code_path }}"
- async: 3600
- poll: 0
- register: build_result
- - name: Check on build async task
- async_status:
- jid: '{{ build_result.ansible_job_id }}'
- register: job_result
- until: job_result.finished
- # Max number of times to check for status
- retries: 36
- # Check for the status every 100s
- delay: 100
- - name: Copying build files to local
- synchronize:
- src: "{{ remote_code_path }}/pioneer/packages/apps/build"
- dest: "{{ data_path }}"
- mode: pull
- run_once: true
- - name: Run S3 Sync to upload build files to bucket
- community.aws.s3_sync:
- bucket: "{{ bucket_name }}"
- file_root: "{{ data_path }}/build"
- region: us-east-1
- delegate_to: localhost
|