feat: Add Dockerfile and automated Docker image publishing - #13
Conversation
- Create an Alpine-based, multi-stage Dockerfile for gitpoll. - Ensure `git`, `bash`, and `openssh` runtime dependencies are installed in the final image. - Add GitHub Actions steps in `ci-cd.yaml` to login, build, and push the Docker image to Docker Hub (`starpia/gitpoll`) on release. - Automatically tag images with the semantic release version and `latest`. Co-authored-by: starpia-forge <157299292+starpia-forge@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
- Add instructions on how to run `gitpoll` via Docker to the `README.md`. - Provide an example `docker run` command using the `starpia/gitpoll:latest` image. - Explain the necessity of the `-it` flag for the interactive TUI setup wizard. - Explain how to mount the `gitpoll.config.json` configuration file and local repository directory using `-v` to ensure correct application behavior and state persistence. Co-authored-by: starpia-forge <157299292+starpia-forge@users.noreply.github.com>
This PR adds the necessary infrastructure to package the
gitpollapplication into a Docker image and publish it automatically via the CI/CD pipeline.Key features:
golang:alpineto build the binary and a minimalalpineimage for the final runtime, significantly reducing image size.git,bash, andopensshare installed in the Alpine image to ensure background repository updates and command executions run properly.releasejob within.github/workflows/ci-cd.yamlto securely publish the generated Docker image using configuredDOCKERHUB_USERandDOCKERHUB_TOKENsecrets.cycjimmy/semantic-release-actionto correctly push both semantic versioned tags (e.g.1.0.0) and thelatesttag to Docker Hub.PR created automatically by Jules for task 5151401155554567207 started by @starpia-forge