diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml index c3e5d3176..d9b65f590 100644 --- a/.github/workflows/pythonapp.yml +++ b/.github/workflows/pythonapp.yml @@ -1,7 +1,7 @@ name: Python application on: - push: + pull_request: paths: - 'python/*' @@ -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 "vinniekaboom" --password-stdin + docker image build -t vinniekaboom/gitops:hellov1.0 . + docker push vinniekaboom/gitops:hellov1.0 diff --git a/namespaces/lasample.yaml b/namespaces/lasample.yaml index 4ddb88401..e0b6b7166 100644 --- a/namespaces/lasample.yaml +++ b/namespaces/lasample.yaml @@ -2,5 +2,5 @@ apiVersion: v1 kind: Namespace metadata: labels: - name: lasample - name: lasample + name: lasample4 + name: lasample4 diff --git a/production/hello.yaml b/production/hello.yaml new file mode 100644 index 000000000..7de2d4e64 --- /dev/null +++ b/production/hello.yaml @@ -0,0 +1,19 @@ +apiVersion: apps/v1 +kind: Development +metadata: + name: hello + namespace: lasample + labels: + app: hello +spec: + selector: + matchLabels: + app: hello + template: + metadata: + labels: + app: hello + spec: + containers: + - name: hello + image: linuxacademycontent/gitops:hellov1.1 diff --git a/python/app.py b/python/app.py index 358088e4c..612ab9676 100644 --- a/python/app.py +++ b/python/app.py @@ -3,7 +3,7 @@ @app.route("/") def hello(): - return "Hello World!" + return "Hello Albuquerque, NM World!" if __name__ == "__main__": app.run(host='0.0.0.0', port=8000)