diff --git a/Jenkinsfile b/Jenkinsfile index 8d783bc..67e346f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,10 +2,16 @@ pipeline { environment { registry = 'https://registry.hub.docker.com' registryCredential = 'dockerhub_jcabillot' - dockerImage = 'jcabillot/ip' + dockerImage = 'jcabillot/ip:arm64' } - agent any + //agent any + agent { + kubernetes { + defaultContainer 'docker' // All `steps` instructions will be executed by this container + yamlFile 'Jenkinsfile-pod-template.yml' + } + } triggers { cron('@midnight') @@ -20,7 +26,7 @@ pipeline { stage('Build image') { steps{ - sh 'docker build --force-rm=true --no-cache=true --pull -t ${dockerImage} .' + sh 'docker build --build-arg VERSION=arm64 --force-rm=true --no-cache=true --pull -t ${dockerImage} .' } }