Skip to content

Commit

Permalink
fixed build script
Browse files Browse the repository at this point in the history
  • Loading branch information
aniketpr01 committed Jul 28, 2024
1 parent 67a5db0 commit b208447
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,10 @@ jobs:
echo "$PRIVATE_KEY" > private_key && chmod 600 private_key
ssh -o StrictHostKeyChecking=no -i private_key ${USER_NAME}@${HOSTNAME} '
sudo su &&
docker ps -q | xargs -r sudo docker stop &&
docker ps -aq | xargs -r sudo docker rm &&
docker pull ${{ env.DOCKER_IMAGE }} &&
docker run -d --name encifher-geth \
sudo docker ps -q | xargs -r sudo docker stop &&
sudo docker ps -aq | xargs -r sudo docker rm &&
sudo docker pull ${{ env.DOCKER_IMAGE }} &&
sudo docker run -d --name encifher-geth \
-p 8545:8545 -p 8546:8546 \
-v /home/ubuntu/encifher-geth/store8:/root/.ethereum \
${{ env.DOCKER_IMAGE }} \
Expand Down

0 comments on commit b208447

Please sign in to comment.