ansible-lint: new container
gitea/evodocker/pipeline/head This commit looks good Details

This commit is contained in:
Ludovic Poujol 2022-12-27 15:42:12 +01:00
parent 8560053220
commit 8cb29df2e6
2 changed files with 21 additions and 0 deletions

View File

@ -48,6 +48,21 @@ pipeline {
}
}
stage('Build ansible-lint') {
steps {
script {
def deb = docker.build("evolix/ansible-lint:build${env.BUILD_ID}", "ansible-lint")
deb.inside {
sh 'echo Test needed'
}
docker.withRegistry('', 'hub.docker') {
deb.push('latest')
}
}
}
}
stage('Build phpcs') {
steps {
script {

6
ansible-lint/Dockerfile Normal file
View File

@ -0,0 +1,6 @@
FROM debian:bullseye-slim
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ansible-lint \
&& rm -rf /var/lib/apt/lists/*