From 07d7e8a2406495cf0f258bc4afba200689091bf1 Mon Sep 17 00:00:00 2001 From: Andriy Yevtushyn <129842532+Avionic23@users.noreply.github.com> Date: Wed, 22 Apr 2026 20:46:42 +0300 Subject: [PATCH 1/4] add test workflow --- .github/workflows/deploy_to_test.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/deploy_to_test.yaml diff --git a/.github/workflows/deploy_to_test.yaml b/.github/workflows/deploy_to_test.yaml new file mode 100644 index 0000000..8399a38 --- /dev/null +++ b/.github/workflows/deploy_to_test.yaml @@ -0,0 +1,17 @@ +name: Deploy to Minikube + +on: + pull_request: + branches: [master] + +jobs: + deploy: + runs-on: self-hosted + steps: + - uses: actions/checkout@v4 + + - name: Build and push image + run: docker build -t my-app:${{ github.sha }} . + + - name: Deploy to cluster + run: kubectl set image deployment/my-app my-app=my-app:${{ github.sha }} From 814db540441c85898442cbe61dcc076b7d7afb5d Mon Sep 17 00:00:00 2001 From: Andriy Yevtushyn <129842532+Avionic23@users.noreply.github.com> Date: Wed, 22 Apr 2026 20:53:02 +0300 Subject: [PATCH 2/4] add test workflow --- .github/workflows/deploy_to_production.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy_to_production.yaml b/.github/workflows/deploy_to_production.yaml index 77cf2f3..3a56e1d 100644 --- a/.github/workflows/deploy_to_production.yaml +++ b/.github/workflows/deploy_to_production.yaml @@ -1,7 +1,7 @@ name: Deploy to Minikube on: - push: + pull_request: branches: [master] jobs: From 678d95407663de7e3a7a9e841c07ccf818d909a6 Mon Sep 17 00:00:00 2001 From: Andriy Yevtushyn <129842532+Avionic23@users.noreply.github.com> Date: Thu, 23 Apr 2026 11:54:49 +0300 Subject: [PATCH 3/4] modify test workflow --- .github/workflows/deploy_to_test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy_to_test.yaml b/.github/workflows/deploy_to_test.yaml index 8399a38..d7874a5 100644 --- a/.github/workflows/deploy_to_test.yaml +++ b/.github/workflows/deploy_to_test.yaml @@ -1,4 +1,4 @@ -name: Deploy to Minikube +name: Deploy to Minikube test on: pull_request: From 6900696582d8c526756aeab3ecc94a02975bdabb Mon Sep 17 00:00:00 2001 From: Andriy Yevtushyn <129842532+Avionic23@users.noreply.github.com> Date: Thu, 23 Apr 2026 11:58:41 +0300 Subject: [PATCH 4/4] modify test workflow --- .github/workflows/deploy_to_production.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy_to_production.yaml b/.github/workflows/deploy_to_production.yaml index 3a56e1d..77cf2f3 100644 --- a/.github/workflows/deploy_to_production.yaml +++ b/.github/workflows/deploy_to_production.yaml @@ -1,7 +1,7 @@ name: Deploy to Minikube on: - pull_request: + push: branches: [master] jobs: