Mixonomer/.jenkins/jenkinsfile

39 lines
878 B
Plaintext
Raw Normal View History

2023-05-02 20:55:07 +01:00
pipeline {
agent any
stages {
2023-05-02 20:57:09 +01:00
// stage('Build Python Env') {
// steps {
// sh 'poetry install'
// }
// }
2023-05-02 20:55:07 +01:00
stage('Build Javascript') {
steps {
sh 'npm ci'
sh 'npm run build --if-present'
}
}
// stage('Test') {
// steps {
// dotnetTest project: "Selector.Core.sln"
// }
// }
stage('Deploy') {
when { branch 'master' }
steps {
script {
2023-05-14 19:07:44 +01:00
docker.withRegistry('https://registry.sarsoo.xyz', 'git-registry-creds') {
2023-05-02 20:55:07 +01:00
docker.build("sarsoo/mixonomer:latest").push()
}
}
}
}
}
post {
always {
cleanWs()
}
}
}