Skip to content

Commit

Permalink
Merge pull request #1838 from statechannels/fix-ga-ssh
Browse files Browse the repository at this point in the history
Force Github Action to fail if command in ssh fails
  • Loading branch information
bitwiseguy committed Nov 14, 2023
2 parents 237037c + 39a2069 commit 64c4ee9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy-cloud-nodes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ jobs:
echo "$SSH_PRIVATE_KEY" > private_key.pem
chmod 600 private_key.pem
ssh -o StrictHostKeyChecking=no -i private_key.pem root@$DROPLET_IP <<ENDSSH
set -e
docker login -u $DO_API_KEY -p $DO_API_KEY registry.digitalocean.com
docker pull registry.digitalocean.com/magmo/go-nitro:latest
docker stop $NODE_NAME || true
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deploy-patsy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ jobs:
echo "$SSH_PRIVATE_KEY" > private_key.pem
chmod 600 private_key.pem
ssh -o StrictHostKeyChecking=no -i private_key.pem root@$DROPLET_IP <<ENDSSH
set -e
docker login -u $DO_API_KEY -p $DO_API_KEY registry.digitalocean.com
docker pull registry.digitalocean.com/magmo/nitro-payment-proxy:latest
docker stop $NAME || true
Expand Down

0 comments on commit 64c4ee9

Please sign in to comment.