diff --git a/Jenkinsfile b/Jenkinsfile index 0e39550..dc7e29e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -19,11 +19,13 @@ pipeline { stage('Build HTML') { steps { - dockerImage = docker.build("alpine-avif-webp:latest") - docker.withRegistry('https://registry.chaoswg.org:5000', 'docker-registry-credentials') { + script { + dockerImage = docker.build("alpine-avif-webp:latest") + docker.withRegistry('https://registry.chaoswg.org:5000', 'docker-registry-credentials') { dockerImage.push() } } } } } +}