excluding drone file
This commit is contained in:
parent
e95db84f6e
commit
0b5880de60
38
.drone.yml
38
.drone.yml
|
|
@ -1,38 +0,0 @@
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
type: ssh
|
|
||||||
name: Stay Safe | Pipeline de déploiement
|
|
||||||
|
|
||||||
clone:
|
|
||||||
disable: true
|
|
||||||
|
|
||||||
# DATAS DU SERVEUR DE BUILD
|
|
||||||
server:
|
|
||||||
host:
|
|
||||||
from_secret: build_server_host
|
|
||||||
user:
|
|
||||||
from_secret: build_server_user
|
|
||||||
password:
|
|
||||||
from_secret: build_server_password
|
|
||||||
steps:
|
|
||||||
- name: Clonage du Repo
|
|
||||||
commands:
|
|
||||||
- git clone https://git.deligraph.be/Antoine/lhoist-stay-safe.git
|
|
||||||
- name: Installation du package
|
|
||||||
commands:
|
|
||||||
- cd lhoist-stay-safe
|
|
||||||
- npm install
|
|
||||||
- name: Build du package
|
|
||||||
commands:
|
|
||||||
- cd lhoist-stay-safe
|
|
||||||
- npm run build
|
|
||||||
- name: Déploiement sur le serveur de prod
|
|
||||||
environment:
|
|
||||||
PROD_SERVER_PATH:
|
|
||||||
from_secret: prod_server_path
|
|
||||||
PROD_FOLDER_PATH:
|
|
||||||
from_secret: prod_folder_path
|
|
||||||
commands:
|
|
||||||
- cd lhoist-stay-safe
|
|
||||||
- sshpass -p "xmAgdEUhDhQp" rsync -avhp -e 'ssh -p 22' ./build/ $PROD_SERVER_PATH:$PROD_FOLDER_PATH --delete
|
|
||||||
# - rsync -avhp -e 'ssh -p 22' ./build/ staysaa@ssh.cluster027.hosting.ovh.net:www --delete
|
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -20,3 +20,4 @@
|
||||||
npm-debug.log*
|
npm-debug.log*
|
||||||
yarn-debug.log*
|
yarn-debug.log*
|
||||||
yarn-error.log*
|
yarn-error.log*
|
||||||
|
.drone.yml
|
||||||
Loading…
Reference in New Issue
Block a user