Skip to content

Commit

Permalink
updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
aniketpr01 committed Jul 29, 2024
1 parent ccc5952 commit a599a33
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,15 @@ jobs:
DOCKER_IMAGE: $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
run: |
ssh -i ~/.ssh/id_rsa $EC2_USER@$EC2_PUBLIC_IP << 'EOF'
aws ecr get-login-password --region us-east-1 | sudo docker login --username AWS --password-stdin 750262681899.dkr.ecr.us-east-1.amazonaws.com
docker pull ${{ env.DOCKER_IMAGE }}
docker ps -q | xargs -r docker stop &&
docker ps -aq | xargs -r docker rm &&
docker run -d --name encifher-geth -p 8545:8545 -p 8546:8546 ${{ env.DOCKER_IMAGE}} \
-v ./store8:/root/.ethereum \
--http --http.api debug,personal,eth,net,web3 \
--http.corsdomain "*" --allow-insecure-unlock \
--dev --datadir /root/.ethereum --dev.period 2 \
--dev --datadir store8 --dev.period 2 \
--http.port 8545 --ws --ws.api debug,personal,eth,net,web3 \
--ws.addr 0.0.0.0 --networkid 1337 --ws.port 8546 \
--ws.origins "*" --http.addr 0.0.0.0
Expand Down

0 comments on commit a599a33

Please sign in to comment.