1 parent 9ee47dc commit de7b4a1Copy full SHA for de7b4a1
1 file changed
Jenkinsfile
@@ -0,0 +1,32 @@
1
+pipeline {
2
+ agent any
3
+
4
+ stages {
5
+ stage('Checkout') {
6
+ steps {
7
+ git branch: 'main', url: 'https://github.com/Cloud-Architect-Emma/bank-cicd-site.git'
8
+ }
9
10
11
+ stage('Build') {
12
13
+ echo 'Building project...'
14
+ sh 'echo Build successful!'
15
16
17
18
+ stage('Docker Build & Push') {
19
20
+ echo 'Building Docker image...'
21
+ sh 'docker build -t cloudarchitectemma/bank-cicd-site:latest .'
22
23
24
25
+ stage('Deploy') {
26
27
+ echo 'Deploying application...'
28
+ sh 'echo Deployment successful!'
29
30
31
32
+}
0 commit comments