2020-10-26 08:06:31 +00:00
|
|
|
image: shockrah/website:1.1
|
2020-10-26 07:51:40 +00:00
|
|
|
|
2020-10-26 08:44:15 +00:00
|
|
|
before_script:
|
|
|
|
- eval $(ssh-agent -s)
|
|
|
|
- echo $SSH_PRIVATE_KEY | tr -d '\r' | ssh-add - > /dev/null
|
|
|
|
- mkdir -p ~/.ssh/
|
|
|
|
- chmod 700 ~/.ssh/
|
2020-10-26 07:51:40 +00:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
stage: build
|
|
|
|
script:
|
|
|
|
- bash ./build.sh
|
2020-10-26 08:44:15 +00:00
|
|
|
- echo the next item will fail
|
|
|
|
- scp -o StrictHostKeyChecking=no -r ./$MIRROR/ root@shockrah.xyz:/var/wwww/website
|