From e24585f23b6d80b8be7004bbad25b2c25cb055e8 Mon Sep 17 00:00:00 2001 From: Arne Vlaeminck Date: Mon, 24 Jul 2023 00:28:35 +0200 Subject: [PATCH] Test Actions --- .gitea/workflows/copy.yaml | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/.gitea/workflows/copy.yaml b/.gitea/workflows/copy.yaml index 56b11c4..c022f64 100644 --- a/.gitea/workflows/copy.yaml +++ b/.gitea/workflows/copy.yaml @@ -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 \ No newline at end of file