Skip to content

Commit

Permalink
Capture genesis.car and add it to reset build artifacts
Browse files Browse the repository at this point in the history
Write an ansible playbook that explicitly fetches the genesis.car and
 adds it to the build artifacts.

Fixes #1633
  • Loading branch information
masih committed Jan 29, 2025
1 parent 66ae5cb commit 2177502
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/lotus-ansible-reset/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ runs:
export TERM=xterm
echo | ./setup_fildev_network.bash --start-services false "${args[@]}"
- name: Remove Faucet Maintenance
if: ${{ inputs.check == 'false' }}
shell: bash
Expand All @@ -153,6 +152,7 @@ runs:
shell: bash
run: |
mkdir /tmp/reset
ansible -i inventories/${DEPLOY_NETWORK}/hosts.yml fetch_genesis_car.yml -e dest=/tmp/reset/
./scripts/encrypt_vault_files.bash
./scripts/bundle_changes.bash . /tmp/reset/lotus-infra
./scripts/bundle_changes.bash ${LOTUSROOT} /tmp/reset/lotus
Expand Down
11 changes: 11 additions & 0 deletions ansible/fetch_genesis_car.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
- hosts: preminer0
become: true
vars:
ansible_ssh_common_args: '-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null'
tasks:
- name: Fetch genesis.car
fetch:
src: "{{ lotus_path }}/genesis.car"
dest: "{{ dest }}"
flat: yes

0 comments on commit 2177502

Please sign in to comment.