Sign inSign up

swaleio/git

By swaleio

•Updated about 2 months ago

Git with LFS and non-interactive token auth for Swale workflows. Backs the git-clone task.

Image
0

467

swaleio/git repository overview

⁠git

Swale-built image backing the git-clone task definition. It wraps git with Git LFS and non-interactive HTTPS token authentication, and emits the resolved commit SHA as a task output.

  • Base: alpine/git
  • Installed: git, git-lfs, openssh-client, ca-certificates
  • User: non-root swale (uid 1000)
  • WORKDIR /mnt/workspace, ENTRYPOINT ["/opt/git/entrypoint.sh"]

⁠Invocation

The task definition's exec.args are the git command line (e.g. ["clone", "--depth=1", "${{inputs.repository_url}}", "${{inputs.dest}}"]). The entrypoint runs git "$@" and augments it from these inputs:

Input envEffect
INPUT_GIT_TOKENConfigures HTTPS credential storage so a private repo can be cloned over https://oauth2:<token>@host. Pass a secret.
INPUT_REPOSITORY_URLUsed to derive the credential host.
INPUT_DESTThe full consumer-supplied clone path; used to locate the repo when emitting the commit_sha output.

⁠Output

After a successful clone, the entrypoint appends

commit_sha=<resolved HEAD SHA>

to $WORKFLOW_TASK_OUTPUT.

⁠Building

From the repository root:

docker build -t docker.io/swaleio/git:1.0.0 images/git

CI publishes the image; task definitions reference it as docker.io/swaleio/git@sha256:<digest>.


Built from images/git⁠ in the swaleio/task-definitions⁠ repository. For how a task definition references an image, see the task definition reference⁠ in the Swale documentation⁠.

The Dockerfile and entrypoint are covered by the MIT License⁠. The software this image packages keeps its own licenses, which ship inside the image.

Tag summary

Content type

Image

Digest

sha256:16b5d6bfe…

Size

35.7 MB

Last updated

about 2 months ago

docker pull swaleio/git