Skip to content

Install Git LFS in the runner image - #30

Merged
clroot merged 1 commit into
mainfrom
runner-image-git-lfs
Nov 19, 2026
Merged

clroot merged 1 commit into
mainfrom
runner-image-git-lfs

Conversation

@clroot

@clroot clroot commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Closes #29

Problem

The runner image had no git-lfs, so workflows using actions/checkout with lfs: true failed at checkout, unlike on GitHub-hosted runners where it is preinstalled.

Change

  • runner/Dockerfile: add git-lfs to the apt package list. Ubuntu 24.04 ships git-lfs 3.4.x, enough for actions/checkout lfs: true and git lfs pull.
  • No global git lfs install: actions/checkout configures the LFS filters per repository when lfs: true.
  • docs/operations.md: list Git LFS among the base image tools.

Verification

  • Built the image locally (arm64); git lfs version prints git-lfs/3.4.1 as root and as the runner user.
  • hadolint reports the same three warnings as main (DL3008 ×2, DL4006); none new.
  • Not run: an actions/checkout lfs: true job against a repository with LFS files. That needs the published image.

Workflows that check out with actions/checkout lfs: true failed because
the image had no git-lfs, unlike GitHub-hosted runners. Ubuntu 24.04
ships git-lfs 3.4.x; actions/checkout configures the LFS filters per
repository, so no global git lfs install is needed.

Closes #29
@clroot
clroot merged commit 71c4dab into main Nov 19, 2026
3 checks passed
@clroot
clroot deleted the runner-image-git-lfs branch November 19, 2026 05:03
@clroot clroot mentioned this pull request Nov 19, 2026
clroot added a commit that referenced this pull request Nov 19, 2026
Publishes the runner image with Git LFS (#30).
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.

러너 이미지에 git-lfs 추가

1 participant