fix(jenkins): use docker command instead of image
This commit is contained in:
parent
15d6f897e9
commit
be613980f1
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@ -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') {
|
||||
|
Loading…
Reference in New Issue
Block a user