diff --git a/jenkinsfile b/jenkinsfile new file mode 100644 index 0000000..3b21a9e --- /dev/null +++ b/jenkinsfile @@ -0,0 +1,20 @@ +pipeline { + agent { label 'jenkins-agent' } + stages { + stage('Build') { + steps { + sh 'docker-compose build' + } + } + stage('Test') { + steps { + sh 'docker-compose run --rm app python -m pytest' + } + } + stage('Deploy') { + steps { + sh 'docker-compose up -d' + } + } + } +}