Skip to content

Commit 5267151

Browse files
ci: update ci checks
1 parent 890b584 commit 5267151

1 file changed

Lines changed: 12 additions & 6 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,19 @@ jobs:
3333
runs-on: ubuntu-latest
3434

3535
steps:
36+
- uses: actions/checkout@v4
37+
38+
- name: Setup SSH key
39+
run: |
40+
mkdir -p ~/.ssh
41+
echo "${{ secrets.SERVER_SSH_KEY }}" > ~/.ssh/id_rsa
42+
chmod 600 ~/.ssh/id_rsa
43+
ssh-keyscan -H ${{ secrets.SERVER_HOST }} >> ~/.ssh/known_hosts
44+
3645
- name: Deploy via SSH
37-
uses: appleboy/ssh-action@v1
38-
with:
39-
host: ${{ secrets.SERVER_HOST }}
40-
username: ${{ secrets.SERVER_USER }}
41-
key: ${{ secrets.SERVER_SSH_KEY }}
42-
script: |
46+
run: |
47+
ssh ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_HOST }} "
4348
cd /home/deploy/portfolio
4449
git pull
4550
docker compose up -d --build
51+
"

0 commit comments

Comments
 (0)