Skip to content

Commit cddff98

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

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,3 +1,4 @@
1+
ARG NIGHTLY=0
12
FROM python:3.12-slim
23

34
# Install packages needed to run your application (not build deps):
@@ -39,6 +40,11 @@ RUN set -ex \
3940
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $BUILD_DEPS \
4041
&& rm -rf /var/lib/apt/lists/*
4142

43+
RUN [ "$NIGHTLY" -eq "1" ] && \
44+
curl -s https://releases.wagtail.org/nightly/latest.json | \
45+
grep -o 'https://[^"]*' | \
46+
xargs python3.12 -m pip install
47+
4248
RUN mkdir /code/
4349
WORKDIR /code/
4450
ADD . /code/

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: 1
57

68
release:
79
image: web

0 commit comments

Comments
 (0)