testing automatic deployment
All checks were successful
Build, push and deploy / builds (push) Successful in 5s

This commit is contained in:
albert
2024-11-08 00:19:00 +01:00
parent 278c945573
commit c72ba4d7e3
2 changed files with 11 additions and 11 deletions

View File

@ -13,13 +13,13 @@ jobs:
- name: checkout code
uses: actions/checkout@v2
- name: rclone to remote
run: |
ls -lha
printf "%s" "${{ secrets.ID_ED25519 }}" > ./id_ed25519
chmod 600 ./id_ed25519 # Set proper permissions
eval "$(ssh-agent -s)"
ssh-add ./id_ed25519
apt-get update
apt-get install -y rsync
rsync -avz --delete --exclude=".env" --exclude="storage/logs/laravel.log" --exclude="laravel/node_modules" -e "ssh -i ./id_ed25519 -o StrictHostKeyChecking=no" ./ albert@217.160.204.114:/var/www/vhosts/electricistasdana.com/httpdocs
# - name: rclone to remote
# run: |
# ls -lha
# printf "%s" "${{ secrets.ID_ED25519 }}" > ./id_ed25519
# chmod 600 ./id_ed25519 # Set proper permissions
# eval "$(ssh-agent -s)"
# ssh-add ./id_ed25519
# apt-get update
# apt-get install -y rsync
# rsync -avz --delete --exclude=".env" --exclude="storage/logs/laravel.log" --exclude="laravel/node_modules" -e "ssh -i ./id_ed25519 -o StrictHostKeyChecking=no" ./ albert@217.160.204.114:/var/www/vhosts/electricistasdana.com/httpdocs