Revert "gha: k8s-on-aks: Fix cluster name"

This reverts commit 85cc5bb534.

Unfortunately we have to revert the PRs related to the switch done to
using `workflow_run` instead of `pull_request_target`.  The reason for
that being that we can only mark jobs as required if they are targetting
PRs.

Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
Fabiano Fidêncio 2023-04-06 18:37:21 +02:00
parent 13d857a56d
commit 5d4d720647

View File

@ -30,7 +30,7 @@ jobs:
- name: Create AKS cluster to test ${{ matrix.vmm }}
uses: ./.github/workflows-create-aks.yaml
with:
name: ${{ inputs.checkout-ref }}-${{ matrix.vmm }}-amd64
name: ${{ github.event.pull_request.number }}-${{ github.event.pull_request.head.sha }}-${{ matrix.vmm }}-amd64
- uses: actions/checkout@v3
with:
@ -54,7 +54,7 @@ jobs:
- name: Download credentials for the Kubernetes CLI to use them
run: |
az aks get-credentials -g "kataCI" -n ${{ inputs.checkout-ref }}-${{ matrix.vmm }}-amd64
az aks get-credentials -g "kataCI" -n ${{ github.event.pull_request.number }}-${{ github.event.pull_request.head.sha }}-${{ matrix.vmm }}-amd64
- name: Deploy kata-deploy
run: |
@ -81,4 +81,4 @@ jobs:
if: always()
uses: ./.github/workflows/delete-aks.yaml
with:
name: ${{ inputs.checkout-ref }}-${{ matrix.vmm }}-amd64
name: ${{ github.event.pull_request.number }}-${{ github.event.pull_request.head.sha }}-${{ matrix.vmm }}-amd64