Adding kubectl executions

This commit is contained in:
Piasecki-grid 2025-03-27 13:48:04 +01:00
parent 839d334c1e
commit fe2034fcca
3 changed files with 18 additions and 15 deletions

View file

@ -1,14 +1,15 @@
name: Deploy and Test Cluster name: Deploy and Test Cluster
on: on:
push: # push:
branches: [main] # branches: [main]
paths: # paths:
- 'k8s/**' # - 'k8s/**'
pull_request: # pull_request:
branches: [main] # branches: [main]
paths: # paths:
- 'k8s/**' # - 'k8s/**'
workflow_dispatch:
jobs: jobs:
deploy-and-test-cluster: deploy-and-test-cluster:

View file

@ -4,10 +4,11 @@
name: Java CI with Gradle name: Java CI with Gradle
on: on:
push: # push:
branches: [ main ] # branches: [ main ]
pull_request: # pull_request:
branches: [ main ] # branches: [ main ]
workflow_dispatch:
jobs: jobs:
build: build:

View file

@ -36,8 +36,8 @@ jobs:
- name: Add executable permissions - name: Add executable permissions
run: chmod a+x mvnw run: chmod a+x mvnw
- name: Maven install dependencies # - name: Maven install dependencies
run: ./mvnw clean install package # run: ./mvnw clean install package
# - name: Upload JAR artifact # - name: Upload JAR artifact
# uses: actions/upload-artifact@4 # uses: actions/upload-artifact@4
@ -54,6 +54,7 @@ jobs:
with: with:
azcliversion: latest azcliversion: latest
inlineScript: | inlineScript: |
az account show az aks get-credentials --resource-group grid-capstone --name dev-grid-cluster --admin
cat ~/.kube/config