Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
SegFault02 committed Oct 25, 2024
1 parent 05a24b2 commit acb12ad
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/blockscout.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
with:
ssh-private-key: ${{ secrets.EC2_PRIVATE_KEY }}

- name: Blockscout
- name: Build blockscout
run: |
ssh -o StrictHostKeyChecking=no ${{ secrets.EC2_USER }}@${{ secrets.EC2_HOST }} << 'EOF'
sudo -s
Expand All @@ -25,6 +25,13 @@ jobs:
git checkout midl
. /root/.asdf/asdf.sh
mix compile --force
EOF
- name: Restart blockscout
run: |
ssh -o StrictHostKeyChecking=no ${{ secrets.EC2_USER }}@${{ secrets.EC2_HOST }} << 'EOF'
sudo -s
cd blockscout-backend/
if screen -list | grep -q "blockscout"; then
screen -S blockscout -X quit
echo "blockscout terminated"
Expand Down

0 comments on commit acb12ad

Please # to comment.