Skip to content

Commit 88d53df

Browse files
committed
ci/cd 8 - testing index
1 parent e8148eb commit 88d53df

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

app/Jenkinsfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ pipeline {
22
agent any
33

44
environment {
5-
IMAGE_TAG = "static-site:latest"
6-
SERVICE_NAME = "static-site"
5+
IMAGE_TAG = "static-site:latest"
6+
CONTAINER_NAME = "static-site"
77
}
88

99
triggers {
@@ -26,18 +26,18 @@ pipeline {
2626
}
2727
}
2828

29-
stage('Restart prod with docker compose') {
29+
stage('Restart container') {
3030
steps {
3131
sh """
32-
docker compose up -d ${SERVICE_NAME}
32+
docker restart ${CONTAINER_NAME}
3333
"""
3434
}
3535
}
3636
}
3737

3838
post {
3939
success {
40-
echo "✅ Deploy succeeded. ${IMAGE_TAG} is now running."
40+
echo "✅ Deploy succeeded. ${IMAGE_TAG} rebuilt and ${CONTAINER_NAME} restarted."
4141
}
4242
failure {
4343
echo "❌ Deploy failed. Check logs."

app/src/pages/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const HomePage: React.FC = () => {
1919
className="w-full lg:w-1/2 mb-8 lg:mb-0"
2020
>
2121
<h1 className="text-5xl font-bold mb-6 leading-tight">
22-
Welcome to the <span className="text-yellow-400">Security Operations Center</span> @ Cal Poly Pomona
22+
Welcome to the <span className="text-yellow-400">Student Security Operations Center</span> @ Cal Poly Pomona
2323
</h1>
2424
<p className="text-xl mb-6 leading-relaxed">
2525
Empowering the next generation of cybersecurity professionals through hands-on learning from monitoring of the <a href="https://www.cpp.edu/cba/digital-innovation/index.shtml" className="text-blue-600 hover:text-blue-800 underline" target="_blank" rel="noopener noreferrer">Mitchell C. Hill Center for Digital Innovation</a>.

0 commit comments

Comments
 (0)