Commit 78c93dda6c
78c93dda6c5db3561d7889d8cb6133f8401fc8d8
parent: e0c7db7541
Unsigned
cmc <hello@cleberg.net> · 2026-02-10 18:49 UTC
fix .gitignore
Layout: unified · split
.gitignore
+6 −5
| @@ -1,8 +1,9 @@ |
| 1 | .build |
1 | .build/ |
| 2 | .DS_Store |
2 | .DS_Store |
| 3 | .ruff_cache |
3 | .gitlab-ci-local/ |
| 4 | .vscode |
4 | .ruff_cache/ |
| 5 | public |
5 | .vscode/ |
| |
6 | public/ |
| 6 | readme.html |
7 | readme.html |
| 7 | venv |
8 | venv/ |
| 8 | theme/static/styles.min.css |
9 | theme/static/styles.min.css |
.gitlab-ci-local/.gitignore
deleted
−2
| @@ -1,2 +0,0 @@ |
| 1 | * |
| |
| 2 | !.gitignore |
| |
.gitlab-ci.yml.bkp
deleted
−54
| @@ -1,54 +0,0 @@ |
| 1 | image: python:latest |
| |
| 2 | |
| |
| 3 | stages: |
| |
| 4 | - build |
| |
| 5 | - deploy |
| |
| 6 | |
| |
| 7 | variables: |
| |
| 8 | TERM: xterm |
| |
| 9 | HOMEBREW_NO_AUTO_UPDATE: "1" |
| |
| 10 | |
| |
| 11 | build-job: |
| |
| 12 | stage: build |
| |
| 13 | before_script: |
| |
| 14 | # 1. Restore Homebrew if it was cached |
| |
| 15 | - if [ -d ".linuxbrew/bin" ]; then |
| |
| 16 | echo "Restoring Homebrew from cache..."; |
| |
| 17 | mv .linuxbrew /home/linuxbrew; |
| |
| 18 | fi |
| |
| 19 | |
| |
| 20 | # 2. Install Homebrew only if missing |
| |
| 21 | - if [ ! -f "/home/linuxbrew/.linuxbrew/bin/brew" ]; then |
| |
| 22 | apt-get update -qy && apt-get install -y curl git procps; |
| |
| 23 | /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"; |
| |
| 24 | fi |
| |
| 25 | |
| |
| 26 | - eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv bash)" |
| |
| 27 | |
| |
| 28 | # 3. Only install tools if they aren't already there |
| |
| 29 | - command -v emacs >/dev/null 2>&1 || brew install emacs rsync uv minify |
| |
| 30 | |
| |
| 31 | # 4. Handle Emacs Repos (using a local project folder for easier caching) |
| |
| 32 | - mkdir -p .emacs_repos |
| |
| 33 | - "[ -d .emacs_repos/htmlize ] || git clone https://github.com/emacsorphanage/htmlize.git .emacs_repos/htmlize" |
| |
| 34 | - "[ -d .emacs_repos/templatel ] || git clone https://github.com/emacs-love/templatel.git .emacs_repos/templatel" |
| |
| 35 | - "[ -d .emacs_repos/weblorg ] || git clone https://github.com/emacs-love/weblorg.git .emacs_repos/weblorg" |
| |
| 36 | script: |
| |
| 37 | - echo "Compiling the site with Emacs and Weblorg..." |
| |
| 38 | - yes r | ENV="prod" uv run build.py |
| |
| 39 | - echo "Compile complete." |
| |
| 40 | after_script: |
| |
| 41 | - cp -r /home/linuxbrew/.linuxbrew .linuxbrew |
| |
| 42 | artifacts: |
| |
| 43 | paths: |
| |
| 44 | - public/ |
| |
| 45 | |
| |
| 46 | deploy-job: |
| |
| 47 | stage: deploy |
| |
| 48 | environment: production |
| |
| 49 | before_script: |
| |
| 50 | - apt-get update -qy && apt-get install -y rsync |
| |
| 51 | script: |
| |
| 52 | - echo "Deploying application via rsync..." |
| |
| 53 | # Example: rsync -azP public/ user@server:/var/www/html |
| |
| 54 | - echo "Application successfully deployed." |
| |