2023-10-01 16:54:37 +00:00
|
|
|
# git-docker
|
2018-12-15 02:10:09 +00:00
|
|
|
|
2023-10-01 16:54:37 +00:00
|
|
|
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.
|
2018-12-15 02:10:09 +00:00
|
|
|
|
|
|
|
## Build
|
|
|
|
|
2023-10-01 16:54:37 +00:00
|
|
|
The container image can be build with via `make` and requires `docker` or
|
|
|
|
`podman`.
|
2018-12-15 02:10:09 +00:00
|
|
|
|
2023-10-01 16:54:37 +00:00
|
|
|
```bash
|
|
|
|
make container-image/build CONTAINER_RUNTIME=docker # or
|
|
|
|
make container-image/build CONTAINER_RUNTIME=podman
|
2018-12-15 02:10:09 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
Clone a commit:
|
|
|
|
|
2023-10-01 16:54:37 +00:00
|
|
|
```bash
|
|
|
|
podman run \
|
|
|
|
--rm \
|
|
|
|
--env DRONE_BUILD_EVENT=push \
|
2023-10-01 19:10:17 +00:00
|
|
|
--env DRONE_COMMIT_BRANCH=master \
|
2023-10-01 16:54:37 +00:00
|
|
|
--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
|
2018-12-15 02:10:09 +00:00
|
|
|
```
|