Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Python application

on:
push:
pull_request:
paths:
- 'python/*'

Expand All @@ -23,6 +23,6 @@ jobs:
- name: Build & Push Image
run: |
cd ./python
echo "${{ secrets.DOCKERPW }}" | docker login -u "[your dockerhub login here]" --password-stdin
docker image build -t [your dockerhub username here]/gitops:hellov1.0 .
docker push [your docker hub username here]/gitops:hellov1.0
echo "${{ secrets.DOCKERPW }}" | docker login -u "pkconsul" --password-stdin
docker image build -t pkconsul/gitops:hellov1.0 .
docker push pkconsul/gitops:hellov1.1
4 changes: 3 additions & 1 deletion python/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@

@app.route("/")
def hello():
return "Hello World!"

return "Hello Worldsss!"


if __name__ == "__main__":
app.run(host='0.0.0.0', port=8000)