Skip to content

feat: Add Dockerfile and automated Docker image publishing - #13

Merged
starpia-forge merged 2 commits into
mainfrom
feat-docker-publish-5151401155554567207
Mar 6, 2026
Merged

feat: Add Dockerfile and automated Docker image publishing#13
starpia-forge merged 2 commits into
mainfrom
feat-docker-publish-5151401155554567207

Conversation

@starpia-forge

Copy link
Copy Markdown
Owner

This PR adds the necessary infrastructure to package the gitpoll application into a Docker image and publish it automatically via the CI/CD pipeline.

Key features:

  1. Multi-Stage Dockerfile: Uses golang:alpine to build the binary and a minimal alpine image for the final runtime, significantly reducing image size.
  2. Runtime Dependencies: git, bash, and openssh are installed in the Alpine image to ensure background repository updates and command executions run properly.
  3. CI/CD Integration: Hooks into the release job within .github/workflows/ci-cd.yaml to securely publish the generated Docker image using configured DOCKERHUB_USER and DOCKERHUB_TOKEN secrets.
  4. Semantic Tagging: Re-uses the version output from cycjimmy/semantic-release-action to correctly push both semantic versioned tags (e.g. 1.0.0) and the latest tag to Docker Hub.

PR created automatically by Jules for task 5151401155554567207 started by @starpia-forge

- 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>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 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 @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

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>
@starpia-forge
starpia-forge merged commit 8feb245 into main Mar 6, 2026
2 checks passed
@starpia-forge
starpia-forge deleted the feat-docker-publish-5151401155554567207 branch March 6, 2026 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant