diff --git a/.Jenkinsfile b/.Jenkinsfile index 064e3db..e19300b 100644 --- a/.Jenkinsfile +++ b/.Jenkinsfile @@ -62,6 +62,21 @@ pipeline { } } + stage('Build ansible-lint-pip') { + steps { + script { + def deb = docker.build("evolix/ansible-lint-pip:build${env.BUILD_ID}", "ansible-lint-pip") + deb.inside { + sh 'echo Test needed' + } + docker.withRegistry('', 'hub.docker') { + deb.push('latest') + } + } + } + } + + stage('Build phpcs') { steps { diff --git a/ansible-lint-pip/Dockerfile b/ansible-lint-pip/Dockerfile new file mode 100644 index 0000000..36ac076 --- /dev/null +++ b/ansible-lint-pip/Dockerfile @@ -0,0 +1,9 @@ +FROM debian:bullseye-slim + +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + python3-pip git \ + && rm -rf /var/lib/apt/lists/* + +RUN pip3 install ansible-lint +