Skip to content

Commit de7b4a1

Browse files
author
Emmanuela Opurum
committed
Add Jenkins pipeline
1 parent 9ee47dc commit de7b4a1

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

Jenkinsfile

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
steps {
13+
echo 'Building project...'
14+
sh 'echo Build successful!'
15+
}
16+
}
17+
18+
stage('Docker Build & Push') {
19+
steps {
20+
echo 'Building Docker image...'
21+
sh 'docker build -t cloudarchitectemma/bank-cicd-site:latest .'
22+
}
23+
}
24+
25+
stage('Deploy') {
26+
steps {
27+
echo 'Deploying application...'
28+
sh 'echo Deployment successful!'
29+
}
30+
}
31+
}
32+
}

0 commit comments

Comments
 (0)