added trigger by branch
This commit is contained in:
parent
842553226e
commit
cb2368ce34
30
.drone.yml
30
.drone.yml
@ -9,11 +9,6 @@ steps:
|
||||
commands:
|
||||
- npm install
|
||||
- npm run build
|
||||
when:
|
||||
branch:
|
||||
- main
|
||||
event:
|
||||
- push
|
||||
|
||||
- name: deploy
|
||||
image: cschlosser/drone-ftps
|
||||
@ -27,25 +22,6 @@ steps:
|
||||
PLUGIN_DEST_DIR: /www
|
||||
PLUGIN_SRC_DIR: /build
|
||||
PLUGIN_EXCLUDE: (.htaccess)|(.git)
|
||||
when:
|
||||
branch:
|
||||
- main
|
||||
event:
|
||||
- push
|
||||
|
||||
# - name: deploy
|
||||
# image: cschlosser/drone-ftps
|
||||
# hostname:
|
||||
# from_secret: net2ftp.cluster027.hosting.ovh.net
|
||||
# environment:
|
||||
# USERNAME:
|
||||
# from_secret: username
|
||||
# PASSWORD:
|
||||
# from_secret: password
|
||||
# HOST:
|
||||
# from_secret: host
|
||||
# commands:
|
||||
# - echo $USERNAME
|
||||
# - echo $PASSWORD
|
||||
# - echo $HOST
|
||||
# - lftp -c "open -u $USERNAME,$PASSWORD $HOST; mirror -Rnev ./build ./www --ignore-time --parallel=10 --exclude .htaccess --exclude-glob .git* --exclude .git/"
|
||||
trigger:
|
||||
branch:
|
||||
- master
|
Loading…
Reference in New Issue
Block a user