first migration test on prod server
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
90dad94d16
commit
a39a54fa9e
10
.drone.yml
10
.drone.yml
|
|
@ -5,7 +5,8 @@ name: default
|
||||||
|
|
||||||
clone:
|
clone:
|
||||||
disable: true
|
disable: true
|
||||||
# SERVER DE BUILD
|
|
||||||
|
# DATAS DU SERVEUR DE BUILD
|
||||||
server:
|
server:
|
||||||
host:
|
host:
|
||||||
from_secret: build_server_host
|
from_secret: build_server_host
|
||||||
|
|
@ -15,10 +16,15 @@ server:
|
||||||
from_secret: build_server_password
|
from_secret: build_server_password
|
||||||
steps:
|
steps:
|
||||||
- name: Deploiement
|
- name: Deploiement
|
||||||
|
environment:
|
||||||
|
PROD_SERVER_PATH:
|
||||||
|
from_secret: prod_server_path
|
||||||
|
PROD_FOLDER_PATH:
|
||||||
|
from_secret: prod_folder_path
|
||||||
commands:
|
commands:
|
||||||
- git clone https://git.deligraph.be/Antoine/lhoist-stay-safe.git
|
- git clone https://git.deligraph.be/Antoine/lhoist-stay-safe.git
|
||||||
- cd lhoist-stay-safe
|
- cd lhoist-stay-safe
|
||||||
- npm install
|
- npm install
|
||||||
- npm run build
|
- npm run build
|
||||||
- ls
|
- ls
|
||||||
# - rsync -avhp ./dist/ $PROJECT_SERVER_PATH --delete
|
- rsync -avhp -e 'ssh -p 22' ./build/ $(PROD_SERVER_PATH):$(PROD_FOLDER_PATH) --delete
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user