generate avif on build

This commit is contained in:
2021-03-25 03:38:38 +01:00
parent 800a3f4a5e
commit 64d9cc7e4d
3 changed files with 82 additions and 0 deletions

9
Jenkinsfile vendored
View File

@ -24,7 +24,16 @@ pipeline {
stage('Build HTML') {
steps {
script {
docker.withRegistry('https://registry.chaoswg.org:5000', 'docker-registry-credentials') {
def dockerImage = docker.image('registry.chaoswg.org:5000/alpine-avif-webp:latest')
dockerImage.pull()
}
}
sh 'docker pull klakegg/hugo:alpine'
sh 'docker run -u 108:116 -v "$PWD:/src" registry.chaoswg.org:5000/alpine-avif-webp:latest'
sh 'docker run -u 108:116 -v "$PWD:/src" klakegg/hugo:alpine'
}
}