Add .gitea/workflows/deploy.yaml
Some checks failed
Copy Files to Samba Share / Copy Files (push) Has been cancelled
Some checks failed
Copy Files to Samba Share / Copy Files (push) Has been cancelled
This commit is contained in:
23
.gitea/workflows/deploy.yaml
Normal file
23
.gitea/workflows/deploy.yaml
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
name: Copy Files to Samba Share
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
copy_files:
|
||||||
|
name: Copy Files
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Install smbclient
|
||||||
|
run: |
|
||||||
|
apt-get update
|
||||||
|
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/www\"; lcd \".\"; prompt; recurse; mput *"
|
||||||
|
|
||||||
Reference in New Issue
Block a user