Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ansible
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tools
Docker
Ansible
Commits
9e83bca6
Commit
9e83bca6
authored
4 years ago
by
Dmitriy Safronov
Browse files
Options
Downloads
Patches
Plain Diff
DEPENDENCIES_RUNTIME
parent
32266674
No related branches found
No related tags found
Loading
Pipeline
#452
failed
4 years ago
Stage: check
Stage: build
Stage: test
Stage: release
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+4
-1
4 additions, 1 deletion
.gitlab-ci.yml
Dockerfile
+1
-1
1 addition, 1 deletion
Dockerfile
with
5 additions
and
2 deletions
.gitlab-ci.yml
+
4
−
1
View file @
9e83bca6
...
@@ -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
##########################################################################################################
##########################################################################################################
...
...
This diff is collapsed.
Click to expand it.
Dockerfile
+
1
−
1
View file @
9e83bca6
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment