2019-07-11 10:17:02 +02:00
|
|
|
---
|
2019-09-06 15:24:30 +02:00
|
|
|
- name: Create archives of the monorepository
|
2019-08-29 09:20:55 +02:00
|
|
|
shell: |
|
2019-09-06 15:24:30 +02:00
|
|
|
(git ls-tree -r HEAD --name-only | sed '/^contracts$/d') | xargs tar zcfv monorepo.tar.gz --files-from -
|
|
|
|
cd contracts; (git ls-tree -r HEAD --name-only) | xargs tar zcfv ../contracts.tar.gz --files-from -
|
2019-08-29 09:20:55 +02:00
|
|
|
delegate_to: 127.0.0.1
|
|
|
|
become: false
|
2019-07-26 10:14:25 +02:00
|
|
|
args:
|
2019-09-06 15:24:30 +02:00
|
|
|
chdir: "{{ lookup('env', 'PWD') }}/.."
|
|
|
|
|
|
|
|
- name: Copy the archives
|
|
|
|
copy:
|
|
|
|
src: ../../../../{{ item }}
|
|
|
|
dest: "{{ bridge_path }}/"
|
|
|
|
with_items:
|
|
|
|
- monorepo.tar.gz
|
|
|
|
- contracts.tar.gz
|
|
|
|
|
|
|
|
- name: Untar the archives
|
|
|
|
shell: |
|
|
|
|
tar zxfv monorepo.tar.gz && rm monorepo.tar.gz
|
|
|
|
mkdir -p contracts && tar zxfv contracts.tar.gz -C ./contracts && rm contracts.tar.gz
|
|
|
|
args:
|
|
|
|
chdir: "{{ bridge_path }}"
|
2019-08-29 09:20:55 +02:00
|
|
|
|
2019-09-06 15:24:30 +02:00
|
|
|
- name: Remove local archives
|
|
|
|
shell: rm {{ item }}
|
|
|
|
delegate_to: 127.0.0.1
|
|
|
|
become: false
|
|
|
|
args:
|
|
|
|
chdir: "{{ lookup('env', 'PWD') }}/.."
|
|
|
|
with_items:
|
|
|
|
- monorepo.tar.gz
|
|
|
|
- contracts.tar.gz
|