This commit is contained in:
1 parent
2a42d0245a
commit
11313668fa
1 file changed
+4
-3
@@ -18,7 +18,7 @@ jobs:
|
|||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
echo "${{ secrets.SSH_PRIVATE_KEY }}" | tr -d '\r' > ~/.ssh/id_rsa
|
echo "${{ secrets.SSH_PRIVATE_KEY }}" | tr -d '\r' > ~/.ssh/id_rsa
|
||||||
chmod 600 ~/.ssh/id_rsa
|
chmod 600 ~/.ssh/id_rsa
|
||||||
ssh-keyscan -p ${{ secrets.SSH_PORT }} ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts 2>/dev/null || true
|
ssh-keyscan -p 5050 spletnimojster.si >> ~/.ssh/known_hosts 2>/dev/null
|
||||||
|
|
||||||
- name: Deploy to Production Server
|
- name: Deploy to Production Server
|
||||||
run: |
|
run: |
|
||||||
@@ -28,6 +28,7 @@ jobs:
|
|||||||
--exclude=".gitea/" \
|
--exclude=".gitea/" \
|
||||||
--exclude=".gitignore" \
|
--exclude=".gitignore" \
|
||||||
--exclude="designs/" \
|
--exclude="designs/" \
|
||||||
-e "ssh -p ${{ secrets.SSH_PORT }} -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no" \
|
--exclude=".well-known/" \
|
||||||
|
-e "ssh -p 5050 -i ~/.ssh/id_rsa -o StrictHostKeyChecking=yes" \
|
||||||
./ \
|
./ \
|
||||||
${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:${{ secrets.TARGET_DIR }}
|
spletnim@spletnimojster.si:/home/spletnim/popovskik.com/
|
||||||
Reference in new issue
Block a user