added trigger by branch

This commit is contained in:
Gianmarco Pettinato 2021-12-16 12:29:37 +01:00
parent 842553226e
commit cb2368ce34

View File

@ -9,11 +9,6 @@ steps:
commands: commands:
- npm install - npm install
- npm run build - npm run build
when:
branch:
- main
event:
- push
- name: deploy - name: deploy
image: cschlosser/drone-ftps image: cschlosser/drone-ftps
@ -27,25 +22,6 @@ steps:
PLUGIN_DEST_DIR: /www PLUGIN_DEST_DIR: /www
PLUGIN_SRC_DIR: /build PLUGIN_SRC_DIR: /build
PLUGIN_EXCLUDE: (.htaccess)|(.git) PLUGIN_EXCLUDE: (.htaccess)|(.git)
when: trigger:
branch: branch:
- main - master
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/"