meta: add deployment with drone
All checks were successful
continuous-integration/drone Build is passing
All checks were successful
continuous-integration/drone Build is passing
This commit is contained in:
parent
eb3761c29e
commit
9abd0ef41f
5 changed files with 4187 additions and 1569 deletions
33
.drone.yml
Normal file
33
.drone.yml
Normal 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
|
|
@ -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
|
|
@ -1 +0,0 @@
|
|||
npm install gulp gulp-include
|
5696
package-lock.json
generated
5696
package-lock.json
generated
File diff suppressed because it is too large
Load diff
20
package.json
Normal file
20
package.json
Normal 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"
|
||||
}
|
Reference in a new issue