We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 890b584 commit 5267151Copy full SHA for 5267151
1 file changed
.github/workflows/deploy.yml
@@ -33,13 +33,19 @@ jobs:
33
runs-on: ubuntu-latest
34
35
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
45
- name: Deploy via SSH
- uses: appleboy/ssh-action@v1
- with:
- host: ${{ secrets.SERVER_HOST }}
- username: ${{ secrets.SERVER_USER }}
- key: ${{ secrets.SERVER_SSH_KEY }}
- script: |
46
47
+ ssh ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_HOST }} "
48
cd /home/deploy/portfolio
49
git pull
50
docker compose up -d --build
51
+ "
0 commit comments