-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
00282f0
commit 1e628b6
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} | ||
} | ||
} |