Skip to content

Commit 1a3b98e

Browse files
committed
Add nightly build config
1 parent 5b6edc8 commit 1a3b98e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
FROM python:3.12-slim
2+
ARG NIGHTLY=0
23

34
# Install packages needed to run your application (not build deps):
45
# We need to recreate the /usr/share/man/man{1..8} directories first because
@@ -33,6 +34,11 @@ RUN set -ex \
3334
zlib1g-dev \
3435
" \
3536
&& apt-get update && apt-get install -y --no-install-recommends $BUILD_DEPS \
37+
&& if [ "$NIGHTLY" = "1" ]; then \
38+
NIGHTLY_URL=$(curl -s https://releases.wagtail.org/nightly/latest.json | \
39+
grep -o 'https://[^"]*') \
40+
&& sed -i "s|wagtail>=.*|${NIGHTLY_URL}|" /requirements/base.txt; \
41+
fi \
3642
&& python3.12 -m venv ${VIRTUAL_ENV} \
3743
&& python3.12 -m pip install -U pip \
3844
&& python3.12 -m pip install --no-cache-dir -r /requirements/production.txt \

heroku.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ build:
22
docker:
33
web:
44
dockerfile: Dockerfile
5+
config:
6+
NIGHTLY: 0
57

68
release:
79
image: web

0 commit comments

Comments
 (0)