Skip to content

Commit 7a655d1

Browse files
wip
1 parent 1062f7e commit 7a655d1

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/deploy.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,23 @@ jobs:
1818
ssh-keyscan -H v1.minusxapi.com >> ~/.ssh/known_hosts
1919
2020
- name: Run frontend server (v1)
21+
uses: appleboy/ssh-action@v1.0.3
2122
env:
22-
REF: ${{ github.ref }} # trying ref
23-
run: |
24-
ssh minusx@v1.minusxapi.com << 'EOF'
23+
REF: ${{ github.ref }}
24+
with:
25+
host: v1.minusxapi.com
26+
username: minusx
27+
key: ${{ secrets.PROD_SERVER_SSH_KEY }}
28+
envs: REF
29+
script: |
2530
cd /home/minusx/minusx/web
2631
echo "can you read this"
2732
echo $REF
28-
echo $REF >> /tmp/test.txt
2933
git fetch --all --tags
3034
git checkout $REF
3135
git reset --hard $REF
3236
docker compose up -d --build
3337
docker image prune -f
3438
echo "what is happening"
3539
echo $REF
36-
EOF
37-
40+

0 commit comments

Comments
 (0)