Ensure rsync available in deploy workflow
Deploy to Development and Production / deploy (push) Successful in 13s Details

This commit is contained in:
Mark Poljanšek 2025-11-20 22:14:52 +01:00
parent 035ecdee43
commit 557c1d341f
1 changed files with 9 additions and 1 deletions

View File

@ -17,6 +17,14 @@ jobs:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
# Preveri, ali je rsync nameščen, sicer ga namesti
- name: Ensure rsync is installed
run: |
if ! command -v rsync >/dev/null; then
sudo apt-get update
sudo apt-get install -y rsync
fi
# Ta korak se vedno izvede - priprava SSH ključa # Ta korak se vedno izvede - priprava SSH ključa
- name: Setup SSH - name: Setup SSH
run: | run: |
@ -48,4 +56,4 @@ jobs:
--exclude=".gitignore" \ --exclude=".gitignore" \
-e "ssh -p ${{ secrets.SSH_PORT }} -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no" \ -e "ssh -p ${{ secrets.SSH_PORT }} -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no" \
./ \ ./ \
${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:${{ secrets.TARGET_MASTER_DIR }} ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:${{ secrets.TARGET_MASTER_DIR }}