Skip to content

Commit d220e6e

Browse files
committed
debug: simplify SSH script + add set -x tracing
1 parent 41f7b77 commit d220e6e

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

.github/workflows/deploy-lnbits-droplet.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -69,19 +69,12 @@ jobs:
6969
username: ${{ env.LNBITS_DROPLET_USER }}
7070
key: ${{ env.LNBITS_DROPLET_SSH_KEY }}
7171
script_stop: true
72-
debug: true
7372
script: |
74-
set -euo pipefail
75-
if [ ! -d ~/coinpayportal ]; then
76-
git clone https://github.com/profullstack/coinpayportal.git ~/coinpayportal
77-
cd ~/coinpayportal
78-
sudo bash scripts/setup-droplet.sh
79-
else
80-
cd ~/coinpayportal
81-
git fetch origin master
82-
git reset --hard origin/master
83-
sudo bash scripts/deploy-lnbits.sh
84-
fi
73+
set -x
74+
cd ~/coinpayportal || exit 1
75+
git fetch origin master 2>&1
76+
git reset --hard origin/master 2>&1
77+
sudo bash scripts/deploy-lnbits.sh 2>&1
8578
8679
- name: Verify LNURLp endpoint
8780
shell: bash

0 commit comments

Comments
 (0)