Skip to content

fix(ci-action): install git in Dockerfile#2075

Draft
louisguitton wants to merge 1 commit intolingodotdev:mainfrom
louisguitton:fix/dockerfile-install-git
Draft

fix(ci-action): install git in Dockerfile#2075
louisguitton wants to merge 1 commit intolingodotdev:mainfrom
louisguitton:fix/dockerfile-install-git

Conversation

@louisguitton
Copy link
Copy Markdown

Summary

Install git in the lingodotdev/ci-action Docker image so lingo.dev ci works in runners that do not already provide it (e.g. GitLab CI using the image directly).

Changes

  • Dockerfile: add RUN apk add --no-cache git after the node:20.12.2-alpine base image.
  • .changeset/fix-dockerfile-install-git.md: patch-level changeset for the lingo.dev package.

Testing

Business logic tests added:

  • N/A — Dockerfile-only change. No existing image-level test harness in the repo, and there is no CLI code path to unit-test.
  • Verified locally by building the image and running lingo.dev ci:
    docker build -t ci-action-local .
    docker run --rm -v "$PWD:/work" -w /work ci-action-local \
      sh -c 'git --version && npx lingo.dev@latest ci --help'
    Before the change: /bin/sh: git: not found, exit 127.
    After the change: git version 2.x and the CLI help prints.
    
    

Visuals

  • N/A — no UI surface.

Checklist

  • Changeset added (if version bump needed)
  • Tests cover business logic (not just happy path)
  • No breaking changes (or documented below)

Closes #2074

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 20, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 6906c8e3-0bf3-434a-a0e4-6561791700e1

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@louisguitton
Copy link
Copy Markdown
Author

waiting for the issue to be assigned to me :) then I'll mark the PR ready

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.

Docker image lingodotdev/ci-action missing git, breaks npx lingo.dev ci outside GitHub runners

1 participant