Commit c9503bf4 authored by zimniy's avatar zimniy
Browse files

Bash functions в pipeline, git убран из образа.

parent 08852b4f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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 "$@") }

##########################################################################################################

+2 −1
Original line number Diff line number Diff line
@@ -2,7 +2,8 @@ FROM pipelinecomponents/ansible-lint:latest

ENV LANG C.UTF-8

ARG DEPENDENCIES_RUNTIME="git openssh-client"
#ARG DEPENDENCIES_RUNTIME="git openssh-client"
ARG DEPENDENCIES_RUNTIME="openssh-client"
RUN apk add --no-cache $DEPENDENCIES_RUNTIME

WORKDIR /opt/ansible