From 9de382b76914ff0b31401ffe246cec888dd3f12e Mon Sep 17 00:00:00 2001 From: Gabriel Simmer Date: Sun, 28 Aug 2022 20:01:18 +0100 Subject: [PATCH] Remove CircleCI configuration Blog is now deployed to Vercel --- .circleci/config.yml | 69 -------------------------------------------- 1 file changed, 69 deletions(-) delete mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 6db72a9..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,69 +0,0 @@ -# Todo -version: 2.1 - -jobs: - build: - docker: - - image: cimg/base:stable - steps: - - checkout - - run: - command: | - mkdir public - wget https://github.com/gohugoio/hugo/releases/download/v0.101.0/hugo_0.101.0_Linux-64bit.deb - sudo dpkg -i hugo_0.101.0_Linux-64bit.deb - echo "Europe/London" | sudo tee /etc/timezone - sudo dpkg-reconfigure --frontend noninteractive tzdata - name: Setup environment - - run: - name: Setup git project branch - command: | - git init - git remote add origin git@github.com:gmemstr/blog.gabrielsimmer.com - git fetch - git branch production origin/production - git checkout production - working_directory: public - - run: - command: | - git show -s --format=%s > public/latest_commit - echo "Latest commit:\n$(cat public/latest_commit)" - - run: - command: hugo --minify - name: Build Hugo site - - persist_to_workspace: - root: public - paths: ["."] - push: - docker: - - image: cimg/base:stable - steps: - - attach_workspace: - at: . - - add_ssh_keys: - fingerprints: ["a8:06:9c:01:24:1b:b6:59:a9:62:76:81:81:d9:9a:29"] - - run: - command: | - git config user.name "Gabriel Simmer" - git config user.email "gabriel@gitgalaxy.com" - git add . - git commit -m "$(cat latest_commit)" - - ssh-keyscan github.com >> ~/.ssh/known_hosts - - git push origin production - name: Push to production - -workflows: - build-and-push: - jobs: - - build: - filters: - branches: - ignore: ["production"] - - push: - requires: ["build"] - filters: - branches: - only: ["trunk"] -