dalibo / explain.dalibo.com

PEV2 Flask service. Visualizing and understanding PostgreSQL EXPLAIN plans made easy.
PostgreSQL License
40 stars 15 forks source link

Add workflow to publish docker image for self-hosting #27

Open alexklibisz opened 4 months ago

alexklibisz commented 4 months ago

Re: #26

Pretty straightforward: checkout the latest tag, build the docker image for the Python flask application, and publish it to Github's container registry, using the git tag as the image tag.

Here's how it looks when it runs: https://github.com/alexklibisz/explain.dalibo.com/actions/runs/8943147452

Here's how it looks when the image is published: https://github.com/alexklibisz/explain.dalibo.com/pkgs/container/pev2/versions

We might want to adjust the name. I chose pev2 for now, but perhaps you want to call it something else.

alexklibisz commented 4 months ago

I see some comments from @pushkar-anand in my email, but not on the PR:

image
alexklibisz commented 4 months ago

@pushkar-anand if you want to self-host the service, I have an image hosted here: https://github.com/alexklibisz/pev2-docker/pkgs/container/pev2-server

pushkar-anand commented 4 months ago

I see some comments from @pushkar-anand in my email, but not on the PR:

image

Yes, I got it working so I deleted it. My bad.

My comment was wrong. My fork was missing tags from the upstream so was getting errors when running the action

alexklibisz commented 4 months ago

@pgiraud Could you have a look here? Thanks