Commit 5f4f426 1 parent e19538c commit 5f4f426 Copy full SHA for 5f4f426
File tree 2 files changed +2
-4
lines changed
2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,4 @@ WORKDIR /app
4
4
5
5
COPY . .
6
6
7
- RUN npm install
8
-
9
- RUN ./jenkins/scripts/deliver.sh
7
+ RUN npm install
Original file line number Diff line number Diff line change 26
26
sshagent([' ec2-server-key' ]) {
27
27
sh " ssh -o StrictHostKeyChecking=no ubuntu@13.212.240.207 sudo docker pull slehmadi/react-app-cicd-dicoding"
28
28
sh " ssh -o StrictHostKeyChecking=no ubuntu@13.212.240.207 sudo docker run --rm -d --name webserver -p 3000:3000 slehmadi/react-app-cicd-dicoding npm run start"
29
- sh " echo deploy has been deployed for 1 minute"
29
+ sh " echo deploy has been deployed for 1 minute && sleep 60 "
30
30
sh " ssh -o StrictHostKeyChecking=no ubuntu@13.212.240.207 sudo docker stop webserver"
31
31
sh " ssh -o StrictHostKeyChecking=no ubuntu@13.212.240.207 sudo docker rmi slehmadi/react-app-cicd-dicoding"
32
32
}
You can’t perform that action at this time.
0 commit comments