meta: add deployment with drone
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
Kazhnuz 2022-04-03 12:42:17 +02:00
parent eb3761c29e
commit 9abd0ef41f
5 changed files with 4187 additions and 1569 deletions

33
.drone.yml Normal file
View file

@ -0,0 +1,33 @@
kind: pipeline
name: production
when:
event: [ push ]
branch: [ main ]
clone:
git:
image: plugins/git
pull: true
steps:
- name: build
image: node:latest
commands:
- npm install -g gulp
- npm i
- npm run build
- name: deploy
image: drillster/drone-rsync
settings:
hosts:
from_secret: deploy_host
target: /var/www/vault.kobold.city
source: dist/*
user:
from_secret: deploy_user
key:
from_secret: deploy_key
when:
branch: main
delete: true

View file

@ -1,6 +0,0 @@
echo "STEP 1 - Generation des fichiers statics"
gulp
echo "STEP 2 - Remplacement dossier public par dossier temp"
rm -rf public
mv dist public

View file

@ -1 +0,0 @@
npm install gulp gulp-include

5636
package-lock.json generated

File diff suppressed because it is too large Load diff

20
package.json Normal file
View file

@ -0,0 +1,20 @@
{
"name": "kobold-vault",
"version": "1.0.0",
"description": "Les vieux projets de kobold-city",
"main": "gulpfile.js",
"dependencies": {
"gulp": "^4.0.2",
"gulp-include": "^2.4.1"
},
"scripts": {
"build": "gulp",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://git.kobold.cafe/jdr/vault"
},
"author": "",
"license": "CC BY-SA"
}