From e408877dc170dc0345ac1d62435bfb0372567443 Mon Sep 17 00:00:00 2001 From: Gianmarco Pettinato Date: Thu, 16 Dec 2021 10:41:15 +0100 Subject: [PATCH] added ci for drone --- .drone.yml | 22 ++++++++++++++++++++++ README.md | 1 + 2 files changed, 23 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..c586f21 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,22 @@ +--- +kind: pipeline +type: docker +name: deploy + +steps: +- name: build-site + image: node:latest + commands: + - npm install + - npm run build +- name: deploy + image: mwienk/docker-lftp + environment: + $USERNAME: + from_secret: username + $PASSWORD: + from_secret: password + $HOST: + from_secret: host + commands: + - 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/README.md b/README.md index 01d338b..03e91ec 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ +[![Build Status](https://dev.jatus.tech/api/badges/Jatus/cv-site/status.svg)](https://dev.jatus.tech/Jatus/cv-site) # My CV I created this website to collect and present all my experiences and works. I made these pages using Typescript and Svelte. To manage the content, I've created a simple system to load content from a couple of JSON files that define where to put the information.