Skip to content

Commit 0362552

Browse files
committed
Trigger full pipeline test - Add health endpoint
- Add /health endpoint for better monitoring - Update main endpoint message for pipeline testing - This will test complete CI/CD pipeline including: * Flask app testing * Docker build and push to ozzyi/devops-project * Terraform fmt check (re-enabled) * Terraform init/validate/plan with all files * Full providers/backend/main/variables validation
1 parent 34027d7 commit 0362552

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

app.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66
@app.route('/')
77
def get_current_time():
88
current_time = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
9-
return f"The current time is: {current_time}"
9+
return f"🚀 DevOps Pipeline Test - Current time: {current_time}"
10+
11+
@app.route('/health')
12+
def health_check():
13+
return {"status": "healthy", "service": "devops-project"}
1014

1115
if __name__ == '__main__':
1216
app.run(host='0.0.0.0', port=8080)

0 commit comments

Comments
 (0)