Skip to content

Commit d11b5ae

Browse files
committed
perf: delete test branch on pr_close
1 parent 6eb5ebc commit d11b5ae

File tree

7 files changed

+13
-14
lines changed

7 files changed

+13
-14
lines changed

.github/workflows/az_acr_delete.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
ACR_LOGIN_PASSWORD: ${{ secrets.ACR_LOGIN_PASSWORD }}
2020
steps:
2121
- name: Azure Cloud Login
22-
uses: Azure/login@v2
22+
uses: azure/login@v2
2323
with:
2424
client-id: ${{ secrets.AZURE_CLIENT_ID }}
2525
tenant-id: ${{ secrets.AZURE_TENANT_ID }}

.github/workflows/gh_delete_branch.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ on:
44
workflow_call:
55

66
jobs:
7+
call-az-acr-delete:
8+
uses: code-kern-ai/cicd-deployment-scripts/.github/workflows/az_acr_delete.yml@dev
9+
secrets: inherit
10+
with:
11+
image_tag: "test-${{ github.event.pull_request.head.ref }}"
12+
713
az-acr-delete:
814
name: 'Azure: Delete Branch Images'
915
runs-on: ubuntu-latest
@@ -17,7 +23,7 @@ jobs:
1723
platform: [amd64, arm64]
1824
steps:
1925
- name: Azure Cloud Login
20-
uses: Azure/login@v2
26+
uses: azure/login@v2
2127
with:
2228
client-id: ${{ secrets.AZURE_CLIENT_ID }}
2329
tenant-id: ${{ secrets.AZURE_TENANT_ID }}

.github/workflows/k8s_apply.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
uses: actions/checkout@v4
2828

2929
- name: Azure Cloud Login
30-
uses: Azure/login@v2
30+
uses: azure/login@v2
3131
with:
3232
client-id: ${{ secrets.AZURE_CLIENT_ID }}
3333
tenant-id: ${{ secrets.AZURE_TENANT_ID }}

.github/workflows/k8s_deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353

5454
# Install the latest version of Kubernetes CLI and configure the Kubernetes CLI configuration file with a Kubernetes Cloud user API token
5555
- name: Azure Cloud Login
56-
uses: Azure/login@v2
56+
uses: azure/login@v2
5757
with:
5858
client-id: ${{ secrets.AZURE_CLIENT_ID }}
5959
tenant-id: ${{ secrets.AZURE_TENANT_ID }}

.github/workflows/k8s_exec_env_pull.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131

3232
# Install the latest version of Kubernetes CLI and configure the Kubernetes CLI configuration file with a Kubernetes Cloud user API token
3333
- name: Azure Login
34-
uses: Azure/login@v2
34+
uses: azure/login@v2
3535
with:
3636
client-id: ${{ secrets.AZURE_CLIENT_ID }}
3737
tenant-id: ${{ secrets.AZURE_TENANT_ID }}

.github/workflows/k8s_inference_reload_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
# Install the latest version of Kubernetes CLI and configure the Kubernetes CLI configuration file with a Kubernetes Cloud user API token
3131
- name: Azure Login
32-
uses: Azure/login@v2
32+
uses: azure/login@v2
3333
with:
3434
client-id: ${{ secrets.AZURE_CLIENT_ID }}
3535
tenant-id: ${{ secrets.AZURE_TENANT_ID }}

.github/workflows/k8s_test.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050

5151
# Install the latest version of Kubernetes CLI and configure the Kubernetes CLI configuration file with a Kubernetes Cloud user API token
5252
- name: Azure Cloud Login
53-
uses: Azure/login@v2
53+
uses: azure/login@v2
5454
with:
5555
client-id: ${{ secrets.AZURE_CLIENT_ID }}
5656
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
@@ -78,10 +78,3 @@ jobs:
7878
-t test-${{ steps.branch_name.outputs.GH_REF_NAME }} \
7979
-r ${{ env.AZURE_CONTAINER_REGISTRY }} \
8080
-c "${{ inputs.test_cmd }}"
81-
82-
call-az-acr-delete:
83-
uses: code-kern-ai/cicd-deployment-scripts/.github/workflows/az_acr_delete.yml@dev
84-
needs: [k8-test]
85-
secrets: inherit
86-
with:
87-
image_tag: "test-${{ needs.k8-test.outputs.GH_REF_NAME }}"

0 commit comments

Comments
 (0)