Removed cursed rm -rf deployment step

This commit is contained in:
Keannu Bernasol 2024-10-16 14:44:20 +08:00
parent 0b12277223
commit 4d41aefe3e
2 changed files with 3 additions and 3 deletions

View file

@ -13,6 +13,5 @@ steps:
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > /root/.ssh/config
- npm install
- npm run build
- ssh "$REMOTE_HOST" 'rm -rf $PROJECT_DIRECTORY/*'
- scp -r build/* "$REMOTE_HOST":"$PROJECT_DIRECTORY"
secrets: [SSH_KEY, REMOTE_HOST, PROJECT_DIRECTORY]

View file

@ -4,6 +4,7 @@ docker volume create \
--driver local \
--opt type=cifs \
--opt device=//uxxxxx.your-server.de/backup \
--opt username=USERNAME,password=PASSWORD,file_mode=0777,dir_mode=0777 \
--opt o=username=USERNAME,password=PASSWORD \
--name VOLUME_NAME
```
```
Native CIFS credentials file is not supported with Docker CIFS volumes