Skip to content

Commit 97f137f

Browse files
committed
Update buildspec for pelican
1 parent 7059258 commit 97f137f

File tree

4 files changed

+26
-22
lines changed

4 files changed

+26
-22
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ WORKDIR /app
1111
RUN apt-get update && apt-get install -y \
1212
git \
1313
curl \
14+
jq \
15+
awscli \
1416
&& apt-get clean \
1517
&& rm -rf /var/lib/apt/lists/* \
1618
# Install PDM
@@ -26,7 +28,7 @@ RUN set -eux; \
2628
rm /tmp/s3deploy.tar.gz
2729

2830
# Copy the pyproject.toml and pdm.lock files
29-
COPY pyproject.toml pdm.lock* util /app/
31+
COPY pyproject.toml pdm.lock* /app/
3032

3133
# Install the dependencies
3234
RUN pdm install --prod --no-self

buildspec.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,13 @@ phases:
2121
- export LANGUAGE="en_US.UTF-8"
2222
build:
2323
commands:
24-
- bundler exec jekyll build --trace
24+
- ls -la
25+
- pdm install --prod
26+
- pdm run pelican html
2527
post_build:
2628
commands:
2729
- aws s3 cp webmentions-cache s3://org.dltj.webmentions-cache --recursive
28-
- cp ./assets/js/JekyllWebmentionIO.js _site/assets/js/JekyllWebmentionIO.js
30+
- cp ./assets/js/JekyllWebmentionIO.js output/assets/js/JekyllWebmentionIO.js
2931
# - aws s3 sync --delete --size-only --cache-control max-age=7201 _site/ "s3://${BUCKET_NAME}"
30-
- s3deploy -bucket org.dltj.blog -region us-east-1 -source _site/ -distribution-id ${DISTRIBUTION_ID} -key $AWS_ACCESS_KEY_ID -secret $AWS_SECRET_ACCESS_KEY
32+
- s3deploy -bucket org.dltj.blog -region us-east-1 -source output/ -distribution-id ${DISTRIBUTION_ID} -key $AWS_ACCESS_KEY_ID -secret $AWS_SECRET_ACCESS_KEY
3133
- aws s3api put-bucket-website --bucket "${BUCKET_NAME}" --website-configuration file://s3-website-config.json

pdm.lock

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ dependencies = [
99
"pelican[markdown] @ git+https://github.com/dltj/pelican.git",
1010
"pelican-jinja2content @ git+https://github.com/pelican-plugins/jinja2content.git",
1111
"pelican-yaml-metadata @ git+https://github.com/pelican-plugins/yaml-metadata.git",
12-
"pelican-dltj-plugin @ git+https://github.com/dltj/pelican-dltj-plugin.git",
1312
"zygote-reader @ git+https://github.com/dltj/zygote-reader",
13+
"dltj-plugin @ git+https://github.com/dltj/pelican-dltj-plugin.git",
1414
]
15-
requires-python = "==3.12.*"
15+
requires-python = "==3.12.7"
1616
readme = "README.md"
1717
license = {text = "MIT"}
1818

0 commit comments

Comments
 (0)