We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3514af9 commit c2ca03bCopy full SHA for c2ca03b
2 files changed
.github/workflows/ci.yaml
@@ -0,0 +1,25 @@
1
+name: ci
2
+
3
+on:
4
+ push:
5
+ paths:
6
+ - src/**
7
+ brances:
8
+ - main
9
10
+jobs:
11
+ docker:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ -
15
+ name: Login to Docker Hub
16
+ uses: docker/login-action@v3
17
+ with:
18
+ username: ${{ secrets.DOCKERHUB_USERNAME }}
19
+ password: ${{ secrets.DOCKERHUB_TOKEN }}
20
21
+ name: Build and push
22
+ uses: docker/build-push-action@v6
23
24
+ push: true
25
+ tags: tyrelfecha/python-app:${GITHUB_SHA::6}
src/app.py
@@ -9,7 +9,8 @@
def details():
return jsonify({
'time': datetime.datetime.now().strftime("%I:%M:%S%p on %B %d, %Y"),
- 'hostname': socket.gethostname()
+ 'hostname': socket.gethostname(),
+ 'message': 'You are doing great, human!'
})
@app.route('/api/v1/healthz')
0 commit comments