diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6033c7d72d170d0306bd291f6bd335ef0041877c..9c3e5e625d1e7d59eb8c1b8e88f04f6248b124e9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,7 +23,8 @@ stages: - registry.cyberbrain.pw/docker/dind before_script: - docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY - - alias drr="docker run --rm -v \${PWD}:\${PWD} -w \${PWD}" + - function drr { (docker run --rm -v ${PWD}:${PWD} -w ${PWD} $@) } + - function git { (docker run -ti --rm -v ${HOME}:/root -v $(pwd):/git alpine/git "$@") } ########################################################################################################## diff --git a/Dockerfile b/Dockerfile index 0b77af7b3a09823fc904d58e8c44bd8da8ad7fc1..15401652c726f6b2fcd0eb349bbce5bc3c0941ed 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM pipelinecomponents/ansible-lint:latest ENV LANG C.UTF-8 -ARG DEPENDENCIES_RUNTIME="git openssh-client" +ARG DEPENDENCIES_RUNTIME="git openssh-client rsync" RUN apk add --no-cache $DEPENDENCIES_RUNTIME WORKDIR /opt/ansible