Skip to content

Commit

Permalink
Testing Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinBrack committed Jul 7, 2019
1 parent 00282f0 commit 1e628b6
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
pipeline {
agent any

stages {
stage('Build') {
steps {
echo 'Building..',
docker build -t express:mine ./express ,
docker build -t client:mine ./client
}
}
stage('Deploy') {
steps {
echo 'Deploying....',
docker run -d -p 1337:1337 --name express express:mine ,
docker run -d -p 80:3000 --name nextjs client:mine ,
docker run -d -p 5432:5432 --name pg postgres
}
}
}
}

0 comments on commit 1e628b6

Please sign in to comment.