* yolo change to figure out why hugo is broken in pipelines

This commit is contained in:
shockrah 2021-08-16 22:05:31 -07:00
parent 1dac449205
commit 0862d59aad

View File

@ -4,16 +4,6 @@ stages:
- build - build
- deploy - deploy
# Setup the SSH Key in required for VPS deployment first
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
build-site: build-site:
only: only:
@ -23,6 +13,7 @@ build-site:
stage: build stage: build
script: script:
- hugo version
- hugo - hugo
artifacts: artifacts:
@ -37,6 +28,17 @@ deploy-vps:
stage: deploy stage: deploy
# Setup the SSH Key in required for VPS deployment first
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
# This is all fine because its just static html w/ no scripts :^) # This is all fine because its just static html w/ no scripts :^)
script: script:
- ssh root@shockrah.xyz "rm -rf /var/www/website" - ssh root@shockrah.xyz "rm -rf /var/www/website"