From 6528779fb6000f84982fbe4ef156ffc6f890d547 Mon Sep 17 00:00:00 2001 From: Gianmarco Pettinato Date: Thu, 16 Dec 2021 12:22:56 +0100 Subject: [PATCH] update for ci --- .drone.yml | 42 +++++++++++++++++++++++++++++++++--------- .gitignore | 1 + 2 files changed, 34 insertions(+), 9 deletions(-) diff --git a/.drone.yml b/.drone.yml index 44b0d51..1c44cc0 100644 --- a/.drone.yml +++ b/.drone.yml @@ -9,17 +9,41 @@ steps: commands: - npm install - npm run build + when: + event: + - push + - name: deploy - image: mwienk/docker-lftp + image: cschlosser/drone-ftps environment: - $USERNAME: + FTP_USERNAME: from_secret: username - $PASSWORD: + FTP_PASSWORD: from_secret: password - $HOST: + PLUGIN_HOSTNAME: 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 + 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 diff --git a/.gitignore b/.gitignore index dad6f80..e160c87 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ node_modules /build /.svelte-kit /package +secrets.txt