Skip to content

Commit f034862

Browse files
committed
image tag set to update in lowercase
1 parent ee2e0b7 commit f034862

3 files changed

Lines changed: 47 additions & 2 deletions

File tree

README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,45 @@
1+
2+
3+
4+
5+
6+
7+
8+
9+
10+
11+
12+
13+
14+
15+
16+
17+
18+
19+
20+
21+
22+
23+
24+
25+
26+
27+
28+
29+
30+
31+
32+
33+
34+
35+
36+
37+
38+
39+
40+
41+
42+
143
# DevSecOps Flask Application Beginner friendly project
244

345
A production-grade **DevSecOps project** demonstrating secure CI/CD practices using:

app/main.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import os
12
from flask import Flask, render_template, jsonify
23

34
app = Flask(__name__)
@@ -18,4 +19,6 @@ def health():
1819
return jsonify({"health": "OK"})
1920

2021
if __name__ == "__main__":
21-
app.run(host="0.0.0.0", port=5000)
22+
host = os.getenv("FLASK_HOST", "127.0.0.1")
23+
port = int(os.getenv("FLASK_PORT", 5000))
24+
app.run(host=host, port=port)

kubernetes/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ spec:
2020

2121
containers:
2222
- name: flask-app
23-
image: ghcr.io/cybraman/DevSecops-Project:sha-729be1b2ba6a93137b748937137f339ed228d2f0
23+
image: ghcr.io/cybraman/devSecops-project:sha-729be1b2ba6a93137b748937137f339ed228d2f0
2424

2525
# Image tag will be updated automatically by CI/CD
2626
imagePullPolicy: Always

0 commit comments

Comments
 (0)