Test Actions
Some checks failed
Copy Files to Samba Share / Copy Files (push) Failing after 8s

This commit is contained in:
Arne Vlaeminck
2023-07-24 00:28:35 +02:00
parent fd61dc8638
commit e24585f23b

View File

@@ -12,18 +12,12 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
- name: Mount Samba share
uses: iamjameshunt/smb-mount-action@v1
with:
server: 192.168.129.250
username: ${{ secrets.SAMBA_USER }}
password: ${{ secrets.SAMBA_PASSWORD }}
share: arne
mountpoint: /mnt/samba # Mount point on the runner machine
- name: Copy files to Samba
- name: Install smbclient
run: |
cp -r ./* /mnt/samba/letsencrypt/config/www/sinia # Customize this line based on the source and destination paths
sudo apt-get install -y smbclient
- name: Copy
run: |
smbclient //192.168.129.250/arne -U "${{ secrets.SAMBA_USER }}" "${{ secrets.SAMBA_PASSWORD }}" -c "cd \"letsencrypt/config/nginx/www/dev/sinia\"; lcd \"./\"; prompt; recurse; mput *"
- name: Unmount Samba share
run: umount /mnt/samba