Skip to content

Commit

Permalink
Add nightly build config
Browse files Browse the repository at this point in the history
  • Loading branch information
laymonage committed Feb 25, 2025
1 parent 5b6edc8 commit f58272a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
ARG NIGHTLY=0
FROM python:3.12-slim

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

RUN if [ "$NIGHTLY" -eq "1" ]; then \
curl -s https://releases.wagtail.org/nightly/latest.json | \
grep -o 'https://[^"]*' | \
xargs python3.12 -m pip install; \
fi

RUN mkdir /code/
WORKDIR /code/
ADD . /code/
Expand Down
2 changes: 2 additions & 0 deletions heroku.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ build:
docker:
web:
dockerfile: Dockerfile
config:
NIGHTLY: 1

release:
image: web
Expand Down

0 comments on commit f58272a

Please sign in to comment.