meta: add deployment with drone
continuous-integration/drone Build is passing Details

This commit is contained in:
Kazhnuz Klappsthul 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

5696
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"
}