From e5a6792a31f5e834ad75a977124e697afa60389e Mon Sep 17 00:00:00 2001 From: James McDonald Date: Sat, 16 Aug 2025 17:25:27 +0200 Subject: [PATCH] Remove the old gitlab ci config --- .gitlab-ci.yml | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 596a241..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,29 +0,0 @@ -image: jamesmcdonald/hugo - -variables: - GIT_SUBMODULE_STRATEGY: recursive - -Run hugo test: - script: - - hugo - except: - - master - -Deploy site: - before_script: - - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client rsync -y )' - - eval $(ssh-agent -s) - - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null - - mkdir -p ~/.ssh - - chmod 700 ~/.ssh - - echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts - - chmod 644 ~/.ssh/known_hosts - - script: - - hugo - - rsync -av --delete public/ james@discord.mcrygh.net:/srv/www/jamesmcdonald - - echo "Purging CloudFlare cache" - - 'curl -s -X POST "https://api.cloudflare.com/client/v4/zones/8f213feeb6709de2ba2b70dd5cfa704e/purge_cache" -H "X-Auth-Email: $CLOUDFLARE_EMAIL" -H "X-Auth-Key: $CLOUDFLARE_KEY" -H "Content-Type: application/json" --data "{\"purge_everything\": true}"' - - only: - - master