From cb2368ce3460c9b515cb75e9501b7275f1fb3219 Mon Sep 17 00:00:00 2001 From: Gianmarco Pettinato Date: Thu, 16 Dec 2021 12:29:37 +0100 Subject: [PATCH] added trigger by branch --- .drone.yml | 30 +++--------------------------- 1 file changed, 3 insertions(+), 27 deletions(-) diff --git a/.drone.yml b/.drone.yml index 2da368d..07bc773 100644 --- a/.drone.yml +++ b/.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/" \ No newline at end of file +trigger: + branch: + - master \ No newline at end of file