0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-30 19:20:56 +01:00
wagtail/.squash.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
1.3 KiB
YAML
Raw Normal View History

2019-03-05 02:01:47 +01:00
deployments:
default:
dockerimage: python:3.11.4-slim-bullseye
2019-03-05 02:01:47 +01:00
build_steps:
- apt-get update && apt-get install -y libssl-dev libpq-dev git build-essential libfontconfig1 libfontconfig1-dev curl
2023-10-27 08:45:09 +02:00
- RUN bash -c "curl -sL https://deb.nodesource.com/setup_20.x | bash -"
- apt install -y nodejs
2019-03-21 23:24:04 +01:00
- pip install setuptools pip --upgrade --force-reinstall
- cd /code
post_build_steps:
- npm ci --audit=false --progress=false
- npm run build
- git clone --depth=1 https://github.com/wagtail/bakerydemo.git /bakerydemo
# Install bakerydemo dependencies
- pip install -r /bakerydemo/requirements/base.txt
# Install the checked-out version of Wagtail, overriding whatever version was installed previously
- pip install /code
- cd /bakerydemo
2019-03-05 02:01:47 +01:00
- python manage.py migrate
# Load content, will also create a superuser for us (admin / changeme)
- python manage.py load_initial_data
# Ensure that the CSRF_TRUSTED_ORIGINS setting includes the Squash.io domain
- echo "CSRF_TRUSTED_ORIGINS = ['https://*.squash.io']" > /bakerydemo/bakerydemo/settings/local.py
2019-03-05 02:01:47 +01:00
launch_steps:
- cd /bakerydemo/
2019-03-21 23:24:04 +01:00
- python manage.py runserver 0.0.0.0:80
port_forwarding: 80:80
2019-03-21 23:24:04 +01:00
run_options: -v ~/code:/code