From 3eb99db05b64fca39224cb288836cd5a423d9ee6 Mon Sep 17 00:00:00 2001 From: ahg-g Date: Wed, 1 Jan 2025 00:13:50 +0000 Subject: [PATCH] Inference-extension: limit image push to known branch names --- ...extension.yaml => k8s-staging-inference-extension.yaml} | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) rename config/jobs/image-pushing/{k9s-staging-inference-extension.yaml => k8s-staging-inference-extension.yaml} (70%) diff --git a/config/jobs/image-pushing/k9s-staging-inference-extension.yaml b/config/jobs/image-pushing/k8s-staging-inference-extension.yaml similarity index 70% rename from config/jobs/image-pushing/k9s-staging-inference-extension.yaml rename to config/jobs/image-pushing/k8s-staging-inference-extension.yaml index e9cbaa3b9504..41fad4ae1d43 100644 --- a/config/jobs/image-pushing/k9s-staging-inference-extension.yaml +++ b/config/jobs/image-pushing/k8s-staging-inference-extension.yaml @@ -1,5 +1,3 @@ -# Source reference: -# https://github.com/kubernetes/test-infra/blob/master/config/jobs/image-pushing/README.md postsubmits: kubernetes-sigs/gateway-api-inference-extension: - name: post-inference-extension-push-images @@ -7,6 +5,11 @@ postsubmits: annotations: testgrid-dashboards: sig-network-gateway-api, sig-k8s-infra-gcb decorate: true + branches: + - ^main$ + - ^release- + # Build semver tags, too + - ^v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$ spec: serviceAccountName: gcb-builder containers: