From 0c02347000f2b272b13cff7980c428a823c85bd7 Mon Sep 17 00:00:00 2001 From: vladimirgruicic <55236547+vladimirgruicic@users.noreply.github.com> Date: Thu, 21 Jul 2022 12:06:37 +0200 Subject: [PATCH 01/13] Update pythonapp.yml --- .github/workflows/pythonapp.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml index c3e5d3176..7dbbf7b9b 100644 --- a/.github/workflows/pythonapp.yml +++ b/.github/workflows/pythonapp.yml @@ -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 "vladimirgruicic" --password-stdin + docker image build -t vladimirgruicic/gitops:hellov1.0 . + docker push vladimirgruicic/gitops:hellov1.0 From 83a78be985fc24dda2e83c26f25425dbeddde900 Mon Sep 17 00:00:00 2001 From: vladimirgruicic <55236547+vladimirgruicic@users.noreply.github.com> Date: Thu, 21 Jul 2022 12:07:20 +0200 Subject: [PATCH 02/13] Update app.py --- python/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/app.py b/python/app.py index 358088e4c..af4f42aff 100644 --- a/python/app.py +++ b/python/app.py @@ -3,7 +3,7 @@ @app.route("/") def hello(): - return "Hello World!" + return "Hello LA student!" if __name__ == "__main__": app.run(host='0.0.0.0', port=8000) From cd00db9ef9dcec04d31b27d9af3198985bc450e0 Mon Sep 17 00:00:00 2001 From: vladimirgruicic <55236547+vladimirgruicic@users.noreply.github.com> Date: Thu, 21 Jul 2022 12:11:09 +0200 Subject: [PATCH 03/13] Update pythonapp.yml --- .github/workflows/pythonapp.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml index 7dbbf7b9b..61a4dd901 100644 --- a/.github/workflows/pythonapp.yml +++ b/.github/workflows/pythonapp.yml @@ -23,6 +23,6 @@ jobs: - name: Build & Push Image run: | cd ./python - echo "${{ secrets.DOCKERPW }}" | docker login -u "vladimirgruicic" --password-stdin + echo "${{ secrets.DOCKERPW }}" | docker login --username="vladimirgruicic" --password=${{ secrets.DOCKERPW }} docker image build -t vladimirgruicic/gitops:hellov1.0 . docker push vladimirgruicic/gitops:hellov1.0 From a8231d4b6f1cfb9de9b8c4dc53439dbe5fd9009e Mon Sep 17 00:00:00 2001 From: vladimirgruicic <55236547+vladimirgruicic@users.noreply.github.com> Date: Thu, 21 Jul 2022 12:11:54 +0200 Subject: [PATCH 04/13] Update app.py --- python/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/app.py b/python/app.py index af4f42aff..97b5bc80b 100644 --- a/python/app.py +++ b/python/app.py @@ -3,7 +3,7 @@ @app.route("/") def hello(): - return "Hello LA student!" + return "Hello LA students!" if __name__ == "__main__": app.run(host='0.0.0.0', port=8000) From fd89379f83b377c212cbb177a45286611baf0a7b Mon Sep 17 00:00:00 2001 From: vladimirgruicic <55236547+vladimirgruicic@users.noreply.github.com> Date: Thu, 21 Jul 2022 12:13:16 +0200 Subject: [PATCH 05/13] Update pythonapp.yml --- .github/workflows/pythonapp.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml index 61a4dd901..f81510e27 100644 --- a/.github/workflows/pythonapp.yml +++ b/.github/workflows/pythonapp.yml @@ -23,6 +23,6 @@ jobs: - name: Build & Push Image run: | cd ./python - echo "${{ secrets.DOCKERPW }}" | docker login --username="vladimirgruicic" --password=${{ secrets.DOCKERPW }} + echo "${{ secrets.DOCKERPW }}" | docker login --username="vladimirgruicic" --password-stdin docker image build -t vladimirgruicic/gitops:hellov1.0 . docker push vladimirgruicic/gitops:hellov1.0 From e3e610580979c24ae090ab4994e3e344675e9906 Mon Sep 17 00:00:00 2001 From: vladimirgruicic <55236547+vladimirgruicic@users.noreply.github.com> Date: Thu, 21 Jul 2022 12:13:33 +0200 Subject: [PATCH 06/13] Update app.py --- python/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/app.py b/python/app.py index 97b5bc80b..0808de33d 100644 --- a/python/app.py +++ b/python/app.py @@ -3,7 +3,7 @@ @app.route("/") def hello(): - return "Hello LA students!" + return "Hello all LA students!" if __name__ == "__main__": app.run(host='0.0.0.0', port=8000) From 185b88c546232efb89a6a0da540e5f7db54fbf5d Mon Sep 17 00:00:00 2001 From: vladimirgruicic <55236547+vladimirgruicic@users.noreply.github.com> Date: Thu, 21 Jul 2022 12:16:29 +0200 Subject: [PATCH 07/13] Update pythonapp.yml --- .github/workflows/pythonapp.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml index f81510e27..1b08b2a9b 100644 --- a/.github/workflows/pythonapp.yml +++ b/.github/workflows/pythonapp.yml @@ -1,10 +1,10 @@ name: Python application on: - push: + pull_request: paths: - 'python/*' - + jobs: build: From b43a003be802cf09f773c9a2c00da3f15fccb3f1 Mon Sep 17 00:00:00 2001 From: vladimirgruicic <55236547+vladimirgruicic@users.noreply.github.com> Date: Thu, 21 Jul 2022 12:19:30 +0200 Subject: [PATCH 08/13] Update app.py --- python/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/app.py b/python/app.py index 0808de33d..97b5bc80b 100644 --- a/python/app.py +++ b/python/app.py @@ -3,7 +3,7 @@ @app.route("/") def hello(): - return "Hello all LA students!" + return "Hello LA students!" if __name__ == "__main__": app.run(host='0.0.0.0', port=8000) From d5dd47b0c901471983d7b881af9baceaeeaf064b Mon Sep 17 00:00:00 2001 From: vladimirgruicic <55236547+vladimirgruicic@users.noreply.github.com> Date: Thu, 21 Jul 2022 12:24:20 +0200 Subject: [PATCH 09/13] Update app.py --- python/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/app.py b/python/app.py index 97b5bc80b..c628e9dc9 100644 --- a/python/app.py +++ b/python/app.py @@ -3,7 +3,7 @@ @app.route("/") def hello(): - return "Hello LA students!" + return "Hello LA students and all others!" if __name__ == "__main__": app.run(host='0.0.0.0', port=8000) From 0d7578e43d188b93698eb7a16d832b204ee2e699 Mon Sep 17 00:00:00 2001 From: vladimirgruicic <55236547+vladimirgruicic@users.noreply.github.com> Date: Thu, 21 Jul 2022 12:40:26 +0200 Subject: [PATCH 10/13] Create hello.yaml --- workloads/hello.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 workloads/hello.yaml diff --git a/workloads/hello.yaml b/workloads/hello.yaml new file mode 100644 index 000000000..87c35db89 --- /dev/null +++ b/workloads/hello.yaml @@ -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 From 00525002cd1af75558bb192f4e4d1257058f5fb7 Mon Sep 17 00:00:00 2001 From: vladimirgruicic <55236547+vladimirgruicic@users.noreply.github.com> Date: Thu, 21 Jul 2022 12:41:24 +0200 Subject: [PATCH 11/13] Create hello.yaml --- qa/hello.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 qa/hello.yaml diff --git a/qa/hello.yaml b/qa/hello.yaml new file mode 100644 index 000000000..8d7270420 --- /dev/null +++ b/qa/hello.yaml @@ -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 From 1de4e49b852d5841de7333679fcaefab1c36ca8e Mon Sep 17 00:00:00 2001 From: vladimirgruicic <55236547+vladimirgruicic@users.noreply.github.com> Date: Thu, 21 Jul 2022 12:42:11 +0200 Subject: [PATCH 12/13] Create hello.yaml --- production/hello.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 production/hello.yaml diff --git a/production/hello.yaml b/production/hello.yaml new file mode 100644 index 000000000..fa1f7e4b7 --- /dev/null +++ b/production/hello.yaml @@ -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.3 From 745b2bcc072d7e2acaf5836bc6b6c9a76a1cf1de Mon Sep 17 00:00:00 2001 From: vladimirgruicic <55236547+vladimirgruicic@users.noreply.github.com> Date: Thu, 21 Jul 2022 12:48:57 +0200 Subject: [PATCH 13/13] Update hello.yaml --- production/hello.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/production/hello.yaml b/production/hello.yaml index fa1f7e4b7..a5a1a9e69 100644 --- a/production/hello.yaml +++ b/production/hello.yaml @@ -16,4 +16,4 @@ spec: spec: containers: - name: hello - image: acgtes/gitops:hellov1.3 + image: acgtes/gitops:hellov1.4