From be613980f1337b679fd6889f110ecf851ab83e0e Mon Sep 17 00:00:00 2001 From: Araozu Date: Tue, 8 Oct 2024 19:40:45 -0500 Subject: [PATCH] fix(jenkins): use docker command instead of image --- Jenkinsfile | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 479e634..85ac5bb 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,14 +2,8 @@ pipeline { agent any stages { stage('Build templ files') { - agent { - docker { - image 'ghcr.io/a-h/templ:latest' - reuseNode true - } - } steps { - sh 'templ generate' + sh 'docker run -v `pwd`:/app -w=/app ghcr.io/a-h/templ:latest generate' } } stage('Build go binary') {