Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test puul #163

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
10 changes: 5 additions & 5 deletions .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Python application

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

jobs:
build:

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 --username="vladimirgruicic" --password-stdin
docker image build -t vladimirgruicic/gitops:hellov1.0 .
docker push vladimirgruicic/gitops:hellov1.0
19 changes: 19 additions & 0 deletions production/hello.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: hello
namespace: lasample
labels:
app: hello
spec:
selector:
matchLabels:
app: hello
template:
metadata:
labels:
app: hello
spec:
containers:
- name: hello
image: acgtes/gitops:hellov1.4
2 changes: 1 addition & 1 deletion python/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

@app.route("/")
def hello():
return "Hello World!"
return "Hello LA students and all others!"

if __name__ == "__main__":
app.run(host='0.0.0.0', port=8000)
19 changes: 19 additions & 0 deletions qa/hello.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: hello
namespace: lasample
labels:
app: hello
spec:
selector:
matchLabels:
app: hello
template:
metadata:
labels:
app: hello
spec:
containers:
- name: hello
image: acgtes/gitops:hellov1.2
19 changes: 19 additions & 0 deletions workloads/hello.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: hello
namespace: lasample
labels:
app: hello
spec:
selector:
matchLabels:
app: hello
template:
metadata:
labels:
app: hello
spec:
containers:
- name: hello
image: acgtes/gitops:hellov1.1