Update .gitlab-ci.yml
This commit is contained in:
parent
eec0319361
commit
a6ef143e11
@ -5,7 +5,6 @@ stages:
|
|||||||
develop-build-job:
|
develop-build-job:
|
||||||
stage: build
|
stage: build
|
||||||
tags:
|
tags:
|
||||||
- build
|
|
||||||
- node
|
- node
|
||||||
script:
|
script:
|
||||||
- echo "Install dependencies..."
|
- echo "Install dependencies..."
|
||||||
@ -17,7 +16,6 @@ develop-build-job:
|
|||||||
master-build-job:
|
master-build-job:
|
||||||
stage: build
|
stage: build
|
||||||
tags:
|
tags:
|
||||||
- build
|
|
||||||
- node
|
- node
|
||||||
script:
|
script:
|
||||||
- echo "Install dependencies..."
|
- echo "Install dependencies..."
|
||||||
@ -32,7 +30,6 @@ master-build-job:
|
|||||||
deploy-job:
|
deploy-job:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
tags:
|
tags:
|
||||||
- deploy
|
|
||||||
- node
|
- node
|
||||||
when: manual
|
when: manual
|
||||||
environment:
|
environment:
|
||||||
@ -50,4 +47,4 @@ deploy-job:
|
|||||||
- scp -P "$Live_Server_Access_Port" -o StrictHostKeyChecking=no ../inkletblot-com.tar.gz "$Live_Server_User"@"$Live_Server_IP":/var/www/html
|
- scp -P "$Live_Server_Access_Port" -o StrictHostKeyChecking=no ../inkletblot-com.tar.gz "$Live_Server_User"@"$Live_Server_IP":/var/www/html
|
||||||
- ssh -p "$Live_Server_Access_Port" "$Live_Server_User"@"$Live_Server_IP" "rm -Rf /var/www/html/inkletblot-com_old && mv /var/www/html/inkletblot-com /var/www/html/inkletblot-com_old && mkdir /var/www/html/inkletblot-com_build && mkdir /var/www/html/inkletblot-com && tar zxf /var/www/html/inkletblot-com.tar.gz -C /var/www/html/inkletblot-com_build && mv /var/www/html/inkletblot-com_build/dist/inkletblot-com/* /var/www/html/inkletblot-com && rm -Rf /var/www/html/inkletblot-com_build && chmod -R 755 /var/www/html/inkletblot-com && exit"
|
- ssh -p "$Live_Server_Access_Port" "$Live_Server_User"@"$Live_Server_IP" "rm -Rf /var/www/html/inkletblot-com_old && mv /var/www/html/inkletblot-com /var/www/html/inkletblot-com_old && mkdir /var/www/html/inkletblot-com_build && mkdir /var/www/html/inkletblot-com && tar zxf /var/www/html/inkletblot-com.tar.gz -C /var/www/html/inkletblot-com_build && mv /var/www/html/inkletblot-com_build/dist/inkletblot-com/* /var/www/html/inkletblot-com && rm -Rf /var/www/html/inkletblot-com_build && chmod -R 755 /var/www/html/inkletblot-com && exit"
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
|||||||
Reference in New Issue
Block a user