drawdb-io / drawdb

Free, simple, and intuitive online database design tool and SQL generator.
https://drawdb.vercel.app
MIT License
12.09k stars 855 forks source link

add docker build and push to container registry #51

Open joao-zanutto opened 2 months ago

joao-zanutto commented 2 months ago

Adds GitHub Actions workflow that builds and push a docker image to ghcr.io container registry.

Requires initial setup of GitHub Container Registry or Dockerhub from repository mainteners

closes #11

vercel[bot] commented 2 months ago

@joao-zanutto is attempting to deploy a commit to the dottle's projects Team on Vercel.

A member of the Team first needs to authorize it.

joao-zanutto commented 2 months ago

Initial commit was made with a personal Dockerhub repository for testing purposes, but it considers ghcr.io as target registry, however it can also be changed to support Dockerhub instead (can also support both registries in parallel).

I can assist on the initial registry setup for ghcr.io/Dockerhub, just let me know if assistance is needed

joao-zanutto commented 2 months ago

Image built and tested with act and available on test repo in Dockerhub

Run it with docker run -p 8080:80 jpberno/test-deawdb:latest and then go to http://localhost:8080/ to check it's working.

I'll be updating the workflow to remove testing credentials, trigger and registry

DenuxPlays commented 2 months ago

Arm support would be great.