From fe2034fcca485f6ff8bb5a0156a5108c7965e4d9 Mon Sep 17 00:00:00 2001 From: Piasecki-grid Date: Thu, 27 Mar 2025 13:48:04 +0100 Subject: [PATCH] Adding kubectl executions --- .github/workflows/deploy-and-test-cluster.yml | 17 +++++++++-------- .github/workflows/gradle-build.yml | 9 +++++---- .github/workflows/maven-build.yml | 7 ++++--- 3 files changed, 18 insertions(+), 15 deletions(-) diff --git a/.github/workflows/deploy-and-test-cluster.yml b/.github/workflows/deploy-and-test-cluster.yml index 7353a604b..28c61c132 100644 --- a/.github/workflows/deploy-and-test-cluster.yml +++ b/.github/workflows/deploy-and-test-cluster.yml @@ -1,14 +1,15 @@ name: Deploy and Test Cluster on: - push: - branches: [main] - paths: - - 'k8s/**' - pull_request: - branches: [main] - paths: - - 'k8s/**' + # push: + # branches: [main] + # paths: + # - 'k8s/**' + # pull_request: + # branches: [main] + # paths: + # - 'k8s/**' + workflow_dispatch: jobs: deploy-and-test-cluster: diff --git a/.github/workflows/gradle-build.yml b/.github/workflows/gradle-build.yml index c24c121b1..318c7dd5d 100644 --- a/.github/workflows/gradle-build.yml +++ b/.github/workflows/gradle-build.yml @@ -4,10 +4,11 @@ name: Java CI with Gradle on: - push: - branches: [ main ] - pull_request: - branches: [ main ] + # push: + # branches: [ main ] + # pull_request: + # branches: [ main ] + workflow_dispatch: jobs: build: diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml index a281ca316..c433b9708 100644 --- a/.github/workflows/maven-build.yml +++ b/.github/workflows/maven-build.yml @@ -36,8 +36,8 @@ jobs: - name: Add executable permissions run: chmod a+x mvnw - - name: Maven install dependencies - run: ./mvnw clean install package + # - name: Maven install dependencies + # run: ./mvnw clean install package # - name: Upload JAR artifact # uses: actions/upload-artifact@4 @@ -54,6 +54,7 @@ jobs: with: azcliversion: latest inlineScript: | - az account show + az aks get-credentials --resource-group grid-capstone --name dev-grid-cluster --admin + cat ~/.kube/config