From 2cdda2f6c28ca2f49da8df9e5922b54bf101ea39 Mon Sep 17 00:00:00 2001 From: Pietro Brenna Date: Tue, 1 Feb 2022 14:17:34 +0100 Subject: [PATCH] build jenkins --- Jenkinsfile | 16 ++++++++++++++++ Readme.md | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..862248e --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,16 @@ +node { + stage('Checkout') { + checkout scm + } + stage('Build docker') { + customImage = docker.build("public/privoxy_whitelist:${env.BUILD_ID}") + } + stage('Push to registry') { + catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { + docker.withRegistry('https://docker.briq.it', 'briq-docker-cred') { + customImage.push("${env.BRANCH_NAME}") + } + } + } +} + diff --git a/Readme.md b/Readme.md index 04fc68b..973c642 100644 --- a/Readme.md +++ b/Readme.md @@ -6,5 +6,5 @@ Privoxy listens to 8118. add whitelisted sites with the ~ prefix to the command Sample command ```bash -docker run -d -p 8118:8118 docker.briq.it/privoxy_whitelist ~ci.briq.it +docker run -d -p 8118:8118 docker.briq.it/public/privoxy_whitelist ~ci.briq.it ```