Add tests to Jenkinsfile

This commit is contained in:
Kameron Kenny 2024-10-30 10:05:05 -04:00
parent 83f5238e41
commit cdb9e502e6
No known key found for this signature in database
GPG Key ID: E5006629839D2276
3 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,7 @@
FROM debian:latest
MAINTAINER Kameron Kenny <kkenny379@gmail.com>
LABEL version="20241030095015"
LABEL version="20241030100505"
LABEL description="Debian Based syslog-ng"
RUN apt-get update

1
Jenkinsfile vendored
View File

@ -16,6 +16,7 @@ pipeline {
stage("Test syslog-ng configuration") {
steps {
sh '/usr/sbin/syslog-ng -s -f config/syslog-ng.conf --no-caps'
sh 'for i in `ls -1 config/syslog-ng.conf.d/*.conf`; do /usr/sbin/syslog-ng -s -f config/syslog-ng.conf.d/${i} --no-caps; done'
}
}

View File

@ -10,7 +10,7 @@ services:
syslog-ng:
build:
dockerfile: Dockerfile
image: docker-registry1.in.thelinuxpro.net:5000/tlp/syslog-ng:20241030095015
image: docker-registry1.in.thelinuxpro.net:5000/tlp/syslog-ng:20241030100505
container_name: syslog-ng
restart: unless-stopped
networks: