Go to file
CSRBot 77c51b34ca
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
chore(deps): update docker.io/library/alpine docker tag to v3.20.0
2024-05-27 16:08:26 +00:00
rootfs/usr/local/bin fix: remove ls 2023-10-01 21:16:54 +02:00
.dockerignore refac: project 2023-10-01 18:54:37 +02:00
.drone.yml chore(deps): update git.cryptic.systems/volker.raschek/markdownlint docker tag to v0.41.0 2024-05-27 13:22:18 +00:00
.editorconfig refac: project 2023-10-01 18:54:37 +02:00
.gitattributes refac: project 2023-10-01 18:54:37 +02:00
.gitignore add starlark script [ci skip] 2019-08-06 14:32:02 -07:00
.markdownlint.yaml fix: normal git commit checkout 2023-10-01 21:10:17 +02:00
Dockerfile chore(deps): update docker.io/library/alpine docker tag to v3.20.0 2024-05-27 16:08:26 +00:00
LICENSE initial commit 2018-08-08 14:43:53 -07:00
Makefile refac: project 2023-10-01 18:54:37 +02:00
manifest.tmpl fix: unsupport arm-v7 image 2023-10-25 14:13:34 +02:00
README.md fix: normal git commit checkout 2023-10-01 21:10:17 +02:00
renovate.json fix(renovate): remove automerge options 2024-01-21 14:36:48 +01:00

git-docker

This is a fork of the official project to clone git repositories from a SCM control system like github, gitlab, gitea, gogs and so on. The difference between the origin and this fork is that this project supports ARM and the shell scripts are tested against shellchecker.

Among other things, the project experiences more extensive support, as the project receives continuous updates thanks to renovate.

Build

The container image can be build with via make and requires docker or podman.

make container-image/build CONTAINER_RUNTIME=docker # or
make container-image/build CONTAINER_RUNTIME=podman

Usage

Clone a commit:

podman run \
  --rm \
  --env DRONE_BUILD_EVENT=push \
  --env DRONE_COMMIT_BRANCH=master \
  --env DRONE_REMOTE_URL=https://git.cryptic.systems/volker.raschek/git-docker.git \
  --env DRONE_WORKSPACE=/workspace \
  --volume /tmp/workspace:/workspace \
    volker.raschek/git:latest