Add configurable theme repo URL for SSH/HTTPS flexibility
- Default to SSH for local development - Use HTTPS in GitLab CI via THEME_REPO_URL env var - Maintain compatibility for both environments
This commit is contained in:
parent
ca7d3e2162
commit
e90db7eb3f
2 changed files with 4 additions and 1 deletions
|
|
@ -6,6 +6,7 @@ build:
|
||||||
stage: build
|
stage: build
|
||||||
tags: ["build"]
|
tags: ["build"]
|
||||||
script:
|
script:
|
||||||
|
- export THEME_REPO_URL='https://github.com/russellballestrini/pelican-svbhack.git'
|
||||||
- make venv
|
- make venv
|
||||||
- export THEME='pelican-themes/pelican-svbhack'
|
- export THEME='pelican-themes/pelican-svbhack'
|
||||||
- export SITEURL='https://russell.ballestrini.net'
|
- export SITEURL='https://russell.ballestrini.net'
|
||||||
|
|
|
||||||
4
Makefile
4
Makefile
|
|
@ -18,11 +18,13 @@ help:
|
||||||
@echo ' make devserver serve and regenerate together '
|
@echo ' make devserver serve and regenerate together '
|
||||||
@echo ' '
|
@echo ' '
|
||||||
|
|
||||||
|
THEME_REPO_URL ?= git@github.com:russellballestrini/pelican-svbhack.git
|
||||||
|
|
||||||
venv:
|
venv:
|
||||||
python3 -m venv venv
|
python3 -m venv venv
|
||||||
venv/bin/pip install -r requirements.txt
|
venv/bin/pip install -r requirements.txt
|
||||||
mkdir -p pelican-themes
|
mkdir -p pelican-themes
|
||||||
cd pelican-themes && git clone git@github.com:russellballestrini/pelican-svbhack.git
|
cd pelican-themes && git clone $(THEME_REPO_URL)
|
||||||
venv/bin/pelican-themes -i pelican-themes/pelican-svbhack/
|
venv/bin/pelican-themes -i pelican-themes/pelican-svbhack/
|
||||||
|
|
||||||
resume:
|
resume:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue