From b124bc8c3ace83348032512c2eab94904523f822 Mon Sep 17 00:00:00 2001 From: Amine Louveau Date: Tue, 19 Jul 2022 19:57:14 +0000 Subject: [PATCH] drone (#5) Co-authored-by: aminecmi Reviewed-on: https://gitea.amine-louveau.fr/AmineL/liste-de-courses-www/pulls/5 --- .drone.yml | 25 +++++++++++++++++++++++++ README.md | 2 ++ package.json | 1 + src/views/Lists.vue | 3 ++- 4 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..f1ef919 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,25 @@ +kind: pipeline +type: docker + +steps: + - name: build + image: node:14 + commands: + - npm install + - echo $VUE_APP_API_BASE_URL + - npm run lint + - npm run build:prod + environment: + VUE_APP_API_BASE_URL: + from_secret: baseurl + + - name: scp files + image: appleboy/drone-scp + settings: + host: amine-louveau.fr + username: ubuntu + key: + from_secret: privateKey + port: 22 + target: /home/ubuntu/courses + source: dist/* diff --git a/README.md b/README.md index 372c62a..093c3e9 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # An alternative front to Google Keep +[![Build Status](http://18.0.0.7:46053/api/badges/AmineL/liste-de-courses-www/status.svg?ref=refs/heads/main)](http://18.0.0.7:46053/AmineL/liste-de-courses-www) + ## HOW TO USE - Change the api url diff --git a/package.json b/package.json index 9a031cc..2b60df2 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "scripts": { "serve": "vue-cli-service serve", "build": "vue-cli-service build", + "build:prod": "vue-cli-service build --mode production", "lint": "vue-cli-service lint" }, "dependencies": { diff --git a/src/views/Lists.vue b/src/views/Lists.vue index ba0f56e..0a1948a 100644 --- a/src/views/Lists.vue +++ b/src/views/Lists.vue @@ -38,7 +38,8 @@