meta: add drone/npm deployment
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Fixes #6
This commit is contained in:
parent
754c38aaf4
commit
3fde32def6
6 changed files with 10986 additions and 8 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 run build
|
||||||
|
|
||||||
|
- name: deploy
|
||||||
|
image: drillster/drone-rsync
|
||||||
|
settings:
|
||||||
|
hosts:
|
||||||
|
from_secret: deploy_host
|
||||||
|
target: /var/www/kobold.city
|
||||||
|
source: dist/*
|
||||||
|
user:
|
||||||
|
from_secret: deploy_user
|
||||||
|
key:
|
||||||
|
from_secret: deploy_key
|
||||||
|
when:
|
||||||
|
branch: master
|
||||||
|
delete: true
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,5 +1,4 @@
|
||||||
.sass-cache/
|
.sass-cache/
|
||||||
node_modules/
|
node_modules/
|
||||||
dist/
|
dist/
|
||||||
package-lock.json
|
|
||||||
public/
|
public/
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
echo "STEP 1 - Generation des fichiers statics"
|
|
||||||
gulp
|
|
||||||
|
|
||||||
echo "STEP 2 - Remplacement dossier public par dossier dist"
|
|
||||||
rm -rf public
|
|
||||||
mv dist public
|
|
|
@ -1 +0,0 @@
|
||||||
npm install gulp gulp-include gulp-sass gulp-clean-css node-sass
|
|
10930
package-lock.json
generated
Normal file
10930
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
23
package.json
Normal file
23
package.json
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
{
|
||||||
|
"name": "kobold.city",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "La page d'accueil de kobold.city",
|
||||||
|
"main": "gulpfile.js",
|
||||||
|
"dependencies": {
|
||||||
|
"gulp": "^4.0.2",
|
||||||
|
"gulp-clean-css": "^4.3.0",
|
||||||
|
"gulp-include": "^2.4.1",
|
||||||
|
"gulp-sass": "^5.1.0",
|
||||||
|
"node-sass": "^7.0.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"
|
||||||
|
}
|
Loading…
Reference in a new issue