diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6829537..6f50984 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,26 +18,6 @@ stages: # paths: # - build/ -vps-website: - image: shockrah/website:latest - stage: deploy - before_script: - - eval "$(ssh-agent -s)" - - echo "${SSH_PRIVATE_KEY}" | ssh-add - > /dev/null - - mkdir -p ~/.ssh/ - - chmod 700 ~/.ssh/ - - ssh-keyscan $VPS_HOST 2>&1 >> ~/.ssh/known_hosts - - chmod 644 ~/.ssh/known_hosts - - git submodule init - - git submodule update - script: - # Build then upload - - cd gitpage/ - - sed -i 's/\.gitlab\.io\/clippable/\.xyz/g' config.toml - - hugo - - cd ../ - - ssh root@shockrah.xyz "rm -rf /var/www/clippable" - - scp -r gitpage/public/ root@shockrah.xyz:/var/www/clippable pages: