fix(jenkins): use docker command instead of image

This commit is contained in:
Araozu 2024-10-08 19:40:45 -05:00
parent 15d6f897e9
commit be613980f1

8
Jenkinsfile vendored
View File

@ -2,14 +2,8 @@ pipeline {
agent any agent any
stages { stages {
stage('Build templ files') { stage('Build templ files') {
agent {
docker {
image 'ghcr.io/a-h/templ:latest'
reuseNode true
}
}
steps { steps {
sh 'templ generate' sh 'docker run -v `pwd`:/app -w=/app ghcr.io/a-h/templ:latest generate'
} }
} }
stage('Build go binary') { stage('Build go binary') {