Commit Graph

68 Commits

Author SHA1 Message Date
Jake Howard e9f74ec0c1
Upgrade to Python 3.12
This required installing `setuptools`, as Honcho implicitly depends on it
2024-01-11 09:26:39 +00:00
Jake Howard b8bbc79de4
Upgrade to Node 20 2023-08-19 13:41:39 +01:00
Jake Howard c1019ed573
Collect static with static files 2023-07-16 15:11:31 +01:00
Jake Howard d5ed93db2a
Django checks requires static files 2023-07-16 15:02:40 +01:00
Jake Howard 72204bbf72
Collect static before checks 2023-07-16 14:58:42 +01:00
Jake Howard f813d96442
Install cURL in CI 2023-07-16 14:47:27 +01:00
Jake Howard 29bd939ae4
Replace flake8 and isort with ruff 2023-07-15 15:10:05 +01:00
Jake Howard ef20d9c695
Install `libpq-dev` package for gunicorn and django checks
Because we're using `django.contrib.postgres`, `psycopg2` must be importable
2023-06-02 16:11:54 +01:00
Jake Howard 41a383800d
Update to Python 3.11 2023-01-11 08:43:45 +00:00
Jake Howard 1c40406c6d
Install dev dependencies on CI 2022-11-03 13:59:09 +00:00
Jake Howard df4dc64058
Replace poetry with pip
The lockfile issues, the extra bloat, I'm done.

Waiting for hatch to be supported by renovate.
2022-11-03 13:54:31 +00:00
Jake Howard 9a35ea56a4
Update poetry 2022-11-01 09:10:55 +00:00
Renovate 1e8ec31176 Update Node.js to v19 2022-10-19 08:00:30 +01:00
Jake Howard 549a48769d
Swap curlylint and djhtml with djlint 2022-10-05 14:17:00 +01:00
Jake Howard 8f66feeaa5
Remove test 404 and 500 paths outside dev 2022-10-02 19:25:36 +01:00
Jake Howard 0646610f0c
Ensure virtualenv is activated before running tests
Seems scripts aren't deep merged
2022-09-13 21:14:48 +01:00
Jake Howard afcadbf1ef
Only install git and libpq when needed 2022-09-13 21:01:09 +01:00
Jake Howard 692421a6c3 Merge branch 'renovate/node-18.x' into 'master'
Update Node.js to v18

See merge request repos/website!9
2022-09-13 19:23:14 +01:00
Jake Howard e85aa7addf
Rename dependency task to show it's using poetry now 2022-09-13 17:48:42 +01:00
Jake Howard e6c12a9a38
Add poetry cache 2022-09-13 17:47:48 +01:00
Jake Howard 9d4ac5fa1d
Remove dedicated poetry check
Roll it into the install
2022-09-13 15:13:48 +01:00
Jake Howard 72642d948f
Embrace poetry
pip-tools doesn't work well on renovate, and also makes some things annoying. Poetry has been a pain in the past, but let's see if intense usage will win me over.
2022-09-13 14:52:06 +01:00
Jake Howard 1433a139cc
Only build container on master
It takes a long time, and most of the time doesn't change. CI should catch any potential issues
2022-09-13 08:59:56 +01:00
Jake Howard e954091f2a
Keep artifacts around a little longer
This ensures the pipeline has definitely finished before it's removed
2022-09-13 08:24:25 +01:00
Renovate 29ea82dad5 Update postgres Docker tag to v14 2022-09-09 17:16:05 +01:00
Renovate 77de830cd5 Update Node.js to v18 2022-09-09 17:15:52 +01:00
Jake Howard 0813b80c73
Test gunicorn config in CI 2022-09-06 08:39:17 +01:00
Jake Howard 7a4388bd69
Ensure `git` is installed on CI 2022-08-28 17:49:21 +01:00
Jake Howard e6ee7d475a
Fix bash conditional syntax
God I hate bash!
2022-08-27 19:02:13 +01:00
Jake Howard c6776faa8c
Use slim container variant
This reduces the size of the container, which makes working with it much easier
2022-08-27 18:44:05 +01:00
Jake Howard 54a7dd2660
Just use a single container task
Pulling, tagging and pushing a container takes a while, so do it all at once
2022-08-27 16:31:54 +01:00
Jake Howard 0da37bb064
Use slim container for node build 2022-08-27 15:25:28 +01:00
Jake Howard 830def684b
Revert "Pull existing container to aid build"
This reverts commit 8ab7e3d70e.

The registry is remote, so this takes a while
2022-08-27 15:04:14 +01:00
Jake Howard bf097b9bb7
Tag images based on commit SHA, not branch name
Branch name isn't useful for the main use case of rollbacks
2022-08-26 10:46:33 +01:00
Jake Howard c3dac42eb0
Only deploy container on `master` 2022-08-26 10:44:31 +01:00
Jake Howard 8ab7e3d70e
Pull existing container to aid build
If layers haven't changed, don't bother rebuilding them
2022-08-26 10:42:38 +01:00
Jake Howard ad255e813d
Add separate deploy stage for container 2022-08-26 10:38:25 +01:00
Jake Howard 132040c47d
Remove auth from postgres DB during tests 2022-08-26 00:08:37 +01:00
Jake Howard 5f4d8828ab
Use extends syntax
This allows deep merging for config, which is needed for variables`
2022-08-26 00:03:28 +01:00
Jake Howard 680a545650
Upload container to registry 2022-08-25 14:27:14 +01:00
Jake Howard 10b32da3e0
Add crontab to project
Cron will likely be a duplicate compose service with a different
command.
2022-08-20 20:48:27 +01:00
Jake Howard 9f2b2a81c9
Add coverage reports 2022-08-17 19:09:07 +01:00
Jake Howard 32412c1172
Docker build doesn't depend on any artifacts 2022-08-03 22:52:51 +01:00
Jake Howard 684bb90707
Only download static artifacts for jobs which need them 2022-08-03 22:43:17 +01:00
Jake Howard 21fb994445
Only build container as far as production 2022-08-03 22:39:11 +01:00
Jake Howard 4917a0fd95
Inline node CI configuration
There's likely only going to be 1
2022-08-03 22:35:55 +01:00
Jake Howard eae2953b89
Add eslint 2022-08-03 21:19:19 +01:00
Jake Howard 512f9cd3b9
Add djhtml 2022-08-03 20:37:34 +01:00
Jake Howard e096dd8cf5
Install curlylint 2022-08-03 20:34:18 +01:00
Jake Howard 856079c118
Don't explicitly list python directories
This means as others are added, they'll be automatically linted
2022-07-29 08:46:44 +01:00