Skip to content

Commit

Permalink
Test/Build/Deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Ujstor committed Sep 23, 2023
1 parent df13314 commit b19b362
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
pipeline {
agent any

stages {
stage('Checkout Code') {
steps {
git(url: 'https://github.com/Ujstor/probit-exchange-api/', branch: 'jenkins')
}
}

stage('Prepair enviroment') {
steps {
script {
sh "cp -f /home/probitenv/.env ${WORKSPACE}"
}
}
}

stage('Test') {
steps {
script {
sh "${JENKINS_HOME}/scripts/pytest.sh ${WORKSPACE}"
}
}
}

stage('Build') {
steps {
script {
sh 'docker build -t ujstor/probitapi .'
}
}
}

stage('Deploy') {
steps {
script {
sh 'docker push ujstor/probitapi'
}
}
}
}
}

0 comments on commit b19b362

Please sign in to comment.