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 1a3b98e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM python:3.12-slim
ARG NIGHTLY=0

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

release:
image: web
Expand Down

0 comments on commit 1a3b98e

Please sign in to comment.