gha: k8s-on-aks: Fix cluster name

This was missed from the last series, as GHA will use the "target
branch" yaml file to start the workflow.

Basically we changed the name of the cluster created to stop relying on
the PR number, as that's not easily accessible on `workflow_run`.

Fixes: #6611

Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
Fabiano Fidêncio 2023-04-06 08:41:51 +02:00
parent 68cb5689f5
commit 85cc5bb534

View File

@ -26,7 +26,7 @@ jobs:
- qemu
uses: ./.github/workflows/create-aks.yaml
with:
name: ${{ github.event.pull_request.number }}-${{ github.sha }}-${{ matrix.vmm }}-amd64
name: ${{ inputs.checkout-ref }}-${{ matrix.vmm }}-amd64
secrets: inherit
run-k8s-tests:
@ -62,7 +62,7 @@ jobs:
- name: Download credentials for the Kubernetes CLI to use them
run: |
az aks get-credentials -g "kataCI" -n ${{ github.event.pull_request.number }}-${{ github.sha }}-${{ matrix.vmm }}-amd64
az aks get-credentials -g "kataCI" -n ${{ inputs.checkout-ref }}-${{ matrix.vmm }}-amd64
- name: Deploy kata-deploy
run: |
@ -96,5 +96,5 @@ jobs:
if: always()
uses: ./.github/workflows/delete-aks.yaml
with:
name: ${{ github.event.pull_request.number }}-${{ github.sha }}-${{ matrix.vmm }}-amd64
name: ${{ inputs.checkout-ref }}-${{ matrix.vmm }}-amd64
secrets: inherit