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

DEPENDENCIES_RUNTIME

parent 32266674
No related branches found
No related tags found
Loading
Pipeline #452 failed
...@@ -47,7 +47,7 @@ build: ...@@ -47,7 +47,7 @@ build:
GIT_DEPTH: 1 GIT_DEPTH: 1
script: script:
- docker pull "${CI_REGISTRY_IMAGE}:latest" || true - docker pull "${CI_REGISTRY_IMAGE}:latest" || true
- docker build --cache-from "${CI_REGISTRY_IMAGE}:latest" -t "${CI_REGISTRY_IMAGE}:temp-${CI_PIPELINE_IID}" -f ./Dockerfile . - docker build --build-arg DEPENDENCIES_RUNTIME="${DEPENDENCIES_RUNTIME}" --cache-from "${CI_REGISTRY_IMAGE}:latest" -t "${CI_REGISTRY_IMAGE}:temp-${CI_PIPELINE_IID}" -f ./Dockerfile .
- docker push "${CI_REGISTRY_IMAGE}:temp-$CI_PIPELINE_IID" - docker push "${CI_REGISTRY_IMAGE}:temp-$CI_PIPELINE_IID"
########################################################################################################## ##########################################################################################################
...@@ -63,6 +63,9 @@ test: ...@@ -63,6 +63,9 @@ test:
- drr "${CI_REGISTRY_IMAGE}:temp-$CI_PIPELINE_IID" ansible -m ping localhost - drr "${CI_REGISTRY_IMAGE}:temp-$CI_PIPELINE_IID" ansible -m ping localhost
- drr "${CI_REGISTRY_IMAGE}:temp-$CI_PIPELINE_IID" ansible-lint --version - drr "${CI_REGISTRY_IMAGE}:temp-$CI_PIPELINE_IID" ansible-lint --version
- drr "${CI_REGISTRY_IMAGE}:temp-$CI_PIPELINE_IID" ansible-lint . - drr "${CI_REGISTRY_IMAGE}:temp-$CI_PIPELINE_IID" ansible-lint .
- drr "${CI_REGISTRY_IMAGE}:temp-$CI_PIPELINE_IID" ssh --version
- drr "${CI_REGISTRY_IMAGE}:temp-$CI_PIPELINE_IID" git --version
- drr "${CI_REGISTRY_IMAGE}:temp-$CI_PIPELINE_IID" rsync --version
########################################################################################################## ##########################################################################################################
......
...@@ -2,7 +2,7 @@ FROM pipelinecomponents/ansible-lint:latest ...@@ -2,7 +2,7 @@ FROM pipelinecomponents/ansible-lint:latest
ENV LANG C.UTF-8 ENV LANG C.UTF-8
ARG DEPENDENCIES_RUNTIME="git openssh-client rsync" #ARG DEPENDENCIES_RUNTIME="git openssh-client rsync"
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