docker / docker/build-push-action

Support shallow depth checkout

Open
#1,347 1 comment 0 reactions 1 assignee View on GitHub

@crazy-max is already working on this.

Since Apr 22, 2025.

area/buildkit
Dominant language
TypeScript
Stars
5.4k
Forks
735
Avg merge
3d 9h
Merged PRs (30d)
14

Description

Description

When the "load git source" internal step runs when this action is used, it fetches the full depth of git tags. Is there a way to set a smaller depth? e.g. depth=1

This is the step I'm referring to, which will start listing off hundreds if not thousands of tags.

https://github.com/docker/docs/blob/e20141cba1746fa824c47b2b4aab300b0e3ed85c/content/manuals/build/bake/remote-definition.md?plain=1#L9-L16

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.