#13 wrap docker command in script block
Some checks failed
Amarillo/amarillo-gitea/amarillo-core/pipeline/head There was a failure building this commit
Some checks failed
Amarillo/amarillo-gitea/amarillo-core/pipeline/head There was a failure building this commit
This commit is contained in:
parent
0a783938e7
commit
08daefd620
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
|
|
@ -22,6 +22,7 @@ pipeline {
|
|||
}
|
||||
stage('Run tests on image'){
|
||||
steps{
|
||||
script {
|
||||
docker.image("${OWNER}/${IMAGE_NAME}:${TAG}").inside(
|
||||
'--rm --name amarillo -p 8000:80 -e MODULE_NAME=amarillo.app.main -e MAX_WORKERS=1 -e ADMIN_TOKEN=test -e RIDE2GO_TOKEN=test -e METRICS_USER=test -e METRICS_PASSWORD=test -e TZ=Europe/Berlin -v $(pwd)/data:/app/data'
|
||||
){
|
||||
|
|
@ -34,6 +35,7 @@ pipeline {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Push image to container registry') {
|
||||
steps {
|
||||
echo 'Pushing image to registry'
|
||||
|
|
|
|||
Loading…
Reference in a new issue