add docker build and push to container registry
Adds GitHub Actions workflow that builds and push a docker image to ghcr.io container registry.
- workflow is triggered on a new tag being pushed in the repository
- image is tagged with two tags:
:versionTagand:latest
Requires initial setup of GitHub Container Registry or Dockerhub from repository mainteners
closes #11
@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.
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
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
Arm support would be great.
Is this going to be merged?
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| drawdb | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jul 25, 2024 0:04am |