From f1b9809c4b61da50c01f3df1980fe2a336e1268d Mon Sep 17 00:00:00 2001 From: TheJoeCoder <joe@radialbog9.uk> Date: Mon, 31 Mar 2025 13:07:17 +0100 Subject: [PATCH] CI Updates (hopefully it doesn't break) --- .gitlab-ci.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b71f7a6..4c1beac 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,11 +6,31 @@ variables: GIT_STRATEGY: clone GIT_SUBMODULE_STRATEGY: recursive TZ: Europe/London + GIT_USER: "project_47_bot_9a59ab19c567101311c7ddc9f73941a5" + GIT_EMAIL: "project_47_bot_9a59ab19c567101311c7ddc9f73941a5@noreply.git.rb9.xyz" + GIT_NAME: "GitLab CI" image: name: golang:1.23.3-bookworm +generate: + stage: build + image: python:3.11-bookworm + script: + - apt update + - apt install -y git + - echo "Generating site..." + - python3 updatecontent.py + - git config user.email "$GIT_EMAIL" + - git config user.name "$GIT_NAME" + - git remote add gitlab https://$GIT_USER:$GITLAB_TOKEN@git.rb9.xyz/TheJoeCoder/blog.git + - git add . + - echo $CI_COMMIT_REF_NAME + - git push gitlab HEAD:$CI_COMMIT_REF_NAME + + pages: + stage: deploy script: # Install brotli - apt-get update -- GitLab