Commit graph

56 commits

Author SHA1 Message Date
1e8ec31176 Update Node.js to v19 2022-10-19 08:00:30 +01:00
549a48769d
Swap curlylint and djhtml with djlint 2022-10-05 14:17:00 +01:00
8f66feeaa5
Remove test 404 and 500 paths outside dev 2022-10-02 19:25:36 +01:00
0646610f0c
Ensure virtualenv is activated before running tests
Seems scripts aren't deep merged
2022-09-13 21:14:48 +01:00
afcadbf1ef
Only install git and libpq when needed 2022-09-13 21:01:09 +01:00
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
e85aa7addf
Rename dependency task to show it's using poetry now 2022-09-13 17:48:42 +01:00
e6c12a9a38
Add poetry cache 2022-09-13 17:47:48 +01:00
9d4ac5fa1d
Remove dedicated poetry check
Roll it into the install
2022-09-13 15:13:48 +01:00
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
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
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
29ea82dad5 Update postgres Docker tag to v14 2022-09-09 17:16:05 +01:00
77de830cd5 Update Node.js to v18 2022-09-09 17:15:52 +01:00
0813b80c73
Test gunicorn config in CI 2022-09-06 08:39:17 +01:00
7a4388bd69
Ensure git is installed on CI 2022-08-28 17:49:21 +01:00
e6ee7d475a
Fix bash conditional syntax
God I hate bash!
2022-08-27 19:02:13 +01:00
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
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
0da37bb064
Use slim container for node build 2022-08-27 15:25:28 +01:00
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
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
c3dac42eb0
Only deploy container on master 2022-08-26 10:44:31 +01:00
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
ad255e813d
Add separate deploy stage for container 2022-08-26 10:38:25 +01:00
132040c47d
Remove auth from postgres DB during tests 2022-08-26 00:08:37 +01:00
5f4d8828ab
Use extends syntax
This allows deep merging for config, which is needed for variables`
2022-08-26 00:03:28 +01:00
680a545650
Upload container to registry 2022-08-25 14:27:14 +01:00
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
9f2b2a81c9
Add coverage reports 2022-08-17 19:09:07 +01:00
32412c1172
Docker build doesn't depend on any artifacts 2022-08-03 22:52:51 +01:00
684bb90707
Only download static artifacts for jobs which need them 2022-08-03 22:43:17 +01:00
21fb994445
Only build container as far as production 2022-08-03 22:39:11 +01:00
4917a0fd95
Inline node CI configuration
There's likely only going to be 1
2022-08-03 22:35:55 +01:00
eae2953b89
Add eslint 2022-08-03 21:19:19 +01:00
512f9cd3b9
Add djhtml 2022-08-03 20:37:34 +01:00
e096dd8cf5
Install curlylint 2022-08-03 20:34:18 +01:00
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
c88fddf835
Use full debian for CI
The containers are bigger, but it has all the required dependencies.
It's also what's run in production anyway.
2022-07-28 23:20:06 +01:00
ed039ce6ed
Use postgres for project db 2022-07-28 20:41:30 +01:00
13c355bf0a
Use pip-tools for dependency management 2022-07-28 18:55:47 +01:00
13f356c900
Use dind and buildkit to build container 2022-07-28 17:25:13 +01:00
97d786e969
Move development into docker
This makes working with related services like redis much easier, and
helps start writing a production container
2022-07-28 14:42:12 +01:00
478f987421
Just install bash during static build 2022-06-12 19:42:15 +01:00
b521163007
Add prettier to format frontend 2022-06-12 19:35:06 +01:00
786bd251a1
Merge collectstatic job into tests
Tests are the only one which really need it. Should make the other tests much faster
2022-06-12 15:58:06 +01:00
f6221a42dd
Remove duplicate checks from test job 2022-06-12 15:55:48 +01:00
c66acadd43
Only use just during development
This makes the CI tasks more verbose, but makes the whole setup much easier to manage
2022-06-12 15:52:45 +01:00
e2d5101a56
Add linting 2022-06-12 15:24:17 +01:00
bea6b53bd3
Ensure static build directory still exists during tests
This silences a warning. It's not actually _required_
2022-06-10 17:22:39 +01:00