Skip to content
Snippets Groups Projects
Commit c9503bf4 authored by Dmitriy Safronov's avatar Dmitriy Safronov
Browse files

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

parent 08852b4f
Branches
No related tags found
1 merge request!7Development
...@@ -23,7 +23,8 @@ stages: ...@@ -23,7 +23,8 @@ stages:
- registry.cyberbrain.pw/docker/dind - registry.cyberbrain.pw/docker/dind
before_script: before_script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY - 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,7 +2,8 @@ FROM pipelinecomponents/ansible-lint:latest ...@@ -2,7 +2,8 @@ FROM pipelinecomponents/ansible-lint:latest
ENV LANG C.UTF-8 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 RUN apk add --no-cache $DEPENDENCIES_RUNTIME
WORKDIR /opt/ansible WORKDIR /opt/ansible
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment