oyvindberg / typo

Typed Postgresql integration for Scala. Hopes to avoid typos
https://oyvindberg.github.io/typo/
MIT License
99 stars 9 forks source link

Add docker image with pgvector extension #59

Closed sbrunk closed 10 months ago

sbrunk commented 10 months ago

Add docker image and CI build to include pgvector support in integration test image. Required for https://github.com/oyvindberg/typo/issues/58

Right now, this would build the image on main, and push it to ghcr.io/oyvindberg/typo/integration-test:latest. Once it's pushed, it can be used as db image in docker-compose.yml. I haven't done that in this PR to avoid a bootstrapping problem.

oyvindberg commented 10 months ago

Thanks!

do you know if I need to add any secrets for this to work?

sbrunk commented 10 months ago

I tested this in my fork and the action did run fine without any additional secrets.

It's taken straight from the docs with just a few adjustments for the docker image and tag name and when to run.

oyvindberg commented 10 months ago

alright, thanks. I'll just try it on master and see what happens then :)

sbrunk commented 10 months ago

Seems to have worked: https://github.com/oyvindberg/typo/pkgs/container/typo%2Fintegration-test

...except that the tag is main instead of latest as intended. Sorry about that. Forgot to uncomment that line. Testing things in branches that should only run on main is inconvenient... Fix forthcoming.

How to set that is tag described here: https://github.com/docker/metadata-action#latest-tag