This commit is contained in:
parent
94c5c03921
commit
87b602c351
5 changed files with 154 additions and 1340 deletions
33
.drone.yml
Normal file
33
.drone.yml
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
kind: pipeline
|
||||||
|
name: production
|
||||||
|
when:
|
||||||
|
event: [ push ]
|
||||||
|
branch: [ master ]
|
||||||
|
|
||||||
|
clone:
|
||||||
|
git:
|
||||||
|
image: plugins/git
|
||||||
|
pull: true
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build
|
||||||
|
image: node:latest
|
||||||
|
commands:
|
||||||
|
- npm install -g gulp
|
||||||
|
- npm i
|
||||||
|
- npm build
|
||||||
|
|
||||||
|
- name: deploy
|
||||||
|
image: drillster/drone-rsync
|
||||||
|
settings:
|
||||||
|
hosts:
|
||||||
|
from_secret: deploy_host
|
||||||
|
target: /var/www/univers.kobold.city
|
||||||
|
source: dist/*
|
||||||
|
user:
|
||||||
|
from_secret: deploy_user
|
||||||
|
key:
|
||||||
|
from_secret: deploy_key
|
||||||
|
when:
|
||||||
|
branch: master
|
||||||
|
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
|
|
1433
package-lock.json
generated
1433
package-lock.json
generated
File diff suppressed because it is too large
Load diff
21
package.json
Normal file
21
package.json
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
{
|
||||||
|
"name": "univers",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "Le site d'univers de Kobold City",
|
||||||
|
"main": "gulpfile.js",
|
||||||
|
"dependencies": {
|
||||||
|
"gulp": "^4.0.2",
|
||||||
|
"gulp-include": "^2.4.1"
|
||||||
|
},
|
||||||
|
"devDependencies": {},
|
||||||
|
"scripts": {
|
||||||
|
"build": "gulp",
|
||||||
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.kobold.cafe/jdr/univers"
|
||||||
|
},
|
||||||
|
"author": "",
|
||||||
|
"license": "ISC"
|
||||||
|
}
|
Reference in a new issue