testing new file var
This commit is contained in:
parent
3d3c326707
commit
46a123d5b8
@ -1,14 +1,14 @@
|
||||
image: shockrah/website:1.2
|
||||
|
||||
before_script:
|
||||
- eval $(ssh-agent -s)
|
||||
- echo "${SSH_PRIVATE_KEY}" | ssh-add - > /dev/null
|
||||
- mkdir -p ~/.ssh/
|
||||
- chmod 700 ~/.ssh/
|
||||
#before_script:
|
||||
# - eval $(ssh-agent -s)
|
||||
# - echo "${SSH_PRIVATE_KEY}" | ssh-add - > /dev/null
|
||||
# - mkdir -p ~/.ssh/
|
||||
# - chmod 700 ~/.ssh/
|
||||
|
||||
deploy:
|
||||
stage: build
|
||||
script:
|
||||
- bash ./build.sh
|
||||
- ssh root@shockrah.xyz "rm -rf /var/www/website"
|
||||
- scp -r .mirror root@shockrah.xyz:/var/www/website/
|
||||
- ssh -i $SSH_PRIVATE_KEY root@shockrah.xyz "rm -rf /var/www/website"
|
||||
- scp -i $SSH_PRIVATE_KEY -r .mirror root@shockrah.xyz:/var/www/website/
|
||||
|
Loading…
Reference in New Issue
Block a user