mirror of
https://github.com/lemeow125/Notes.git
synced 2024-11-17 04:09:26 +08:00
Removed cursed rm -rf deployment step
This commit is contained in:
parent
0b12277223
commit
4d41aefe3e
2 changed files with 3 additions and 3 deletions
|
@ -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]
|
||||
|
|
|
@ -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
|
Loading…
Reference in a new issue