This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user