Skip to content

Commit

Permalink
fix: foundry installation
Browse files Browse the repository at this point in the history
  • Loading branch information
mrekucci committed Jun 3, 2024
1 parent f8ca496 commit ca7c774
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/infrstructure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ jobs:
~/go/pkg/mod
~/.cache/go-build
~/.local/pipx
~/.foundry
/usr/local/bin/goreleaser
key: ${{ runner.os }}-go-${{ hashFiles('**/go.work.sum') }}
restore-keys: ${{ runner.os }}-go-
Expand All @@ -125,6 +126,9 @@ jobs:
sudo apt-get install --yes goreleaser
pip install boto3 botocore
pipx inject ansible-core botocore boto3
curl --location https://foundry.paradigm.xyz | bash
~/.config/.foundry/bin/foundryup
sudo ln -s ~/.config/.foundry/bin/* /usr/local/bin/
- name: Configure Control Machine
run: |
Expand Down Expand Up @@ -236,7 +240,7 @@ jobs:
curl -X POST -H 'Content-type: application/json' --data "${PAYLOAD}" "${{ secrets.SLACK_CI_CHANNEL_WEBHOOK_URL }}"
- name: Initialize Debug Shell
if: ${{ env.IS_MANUAL_DEPLOYMENT == 'false' && failure() }}
if: ${{ failure() }}
run: |
TUNSHELL_KEYS=$(curl -sSf -X POST https://eu.relay.tunshell.com/api/sessions)
DEBUG_SHELL="sh <(curl -sSf https://lets.tunshell.com/init.sh) L $(echo ${TUNSHELL_KEYS} | jq -r .peer2_key) \${TUNSHELL_SECRET} eu.relay.tunshell.com"
Expand Down
6 changes: 4 additions & 2 deletions infrastructure/nomad/playbooks/init.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,11 @@
state: present

- name: Install Foundry Tools
shell: |
curl -L https://foundry.paradigm.xyz | bash
ansible.builtin.shell: |
curl --location https://foundry.paradigm.xyz | bash
~/.foundry/bin/foundryup
become: true
become_user: "{{ hostvars[inventory_hostname].ansible_user }}"

- name: Install Python Web3 Package
pip:
Expand Down

0 comments on commit ca7c774

Please sign in to comment.