finished initial implementation of site and added ci/cd stuffs
This commit is contained in:
parent
c099269dfd
commit
0077f4cc5a
@ -12,7 +12,7 @@ develop-build-job:
|
||||
only:
|
||||
- develop
|
||||
|
||||
master-build-job:
|
||||
main-build-job:
|
||||
stage: build
|
||||
tags:
|
||||
- hugo
|
||||
@ -23,7 +23,7 @@ master-build-job:
|
||||
paths:
|
||||
- public/
|
||||
only:
|
||||
- master
|
||||
- main
|
||||
|
||||
deploy-job:
|
||||
stage: deploy
|
||||
@ -44,4 +44,4 @@ deploy-job:
|
||||
- scp -o 'ProxyJump "$Live_Server_User"@"$Live_Server_IP"' -o StrictHostKeyChecking=no ../inkletblot-com.tar.gz "$Live_Server_User"@"$Live_Server_Target":/var/www/html
|
||||
- ssh -J "$Live_Server_User"@"$Live_Server_IP" "$Live_Server_User"@"$Live_Server_Target" "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:
|
||||
- master
|
||||
- main
|
||||
|
||||
Loading…
Reference in New Issue
Block a user