From a5731a48c3b8e44aa8a97f220885d8c00ce1a6eb Mon Sep 17 00:00:00 2001 From: shockrah Date: Sat, 11 Feb 2023 21:45:35 -0800 Subject: [PATCH] Removing main deployment job --- .gitlab-ci.yml | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3995dba..7436ed0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -57,22 +57,24 @@ pages: - public/ # Deploys to the main blog -deploy-shockrah.xyz: - stage: deploy - image: shockrah/ansible:latest - needs: - - build-shockrah.xyz - dependencies: - - build-shockrah.xyz - before_script: - - eval "$(ssh-agent -s)" - - echo "${CI_USER_KEY}" | tr -d '\r' | ssh-add - - - mkdir -p ~/.ssh/ - - chmod 700 ~/.ssh/ - - ssh-keyscan shockrah.xyz 2>&1 >> ~/.ssh/known_hosts - - chmod 644 ~/.ssh/known_hosts - script: - - ansible-playbook -i $INVENTORY scripts/deploy-blog.yml +# TODO: make sure this works with the latest infrastructure as the +# server is used to deploy to is now gone +#deploy-shockrah.xyz: +# stage: deploy +# image: shockrah/ansible:latest +# needs: +# - build-shockrah.xyz +# dependencies: +# - build-shockrah.xyz +# before_script: +# - eval "$(ssh-agent -s)" +# - echo "${CI_USER_KEY}" | tr -d '\r' | ssh-add - +# - mkdir -p ~/.ssh/ +# - chmod 700 ~/.ssh/ +# - ssh-keyscan shockrah.xyz 2>&1 >> ~/.ssh/known_hosts +# - chmod 644 ~/.ssh/known_hosts +# script: +# - ansible-playbook -i $INVENTORY scripts/deploy-blog.yml # Deploy to neocities via their curl api