From c9ce65f60407d3bb7d6958897f5a3a44ad64eed1 Mon Sep 17 00:00:00 2001 From: Ciara Stacke Date: Tue, 21 Oct 2025 22:10:17 +0100 Subject: [PATCH] Fix helm tests in release pipeline --- .github/workflows/build.yml | 2 +- .github/workflows/ci.yml | 1 + .github/workflows/helm.yml | 8 ++++++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a5e732b094..9bd0f85295 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -50,7 +50,7 @@ jobs: - name: Checkout Repository uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 with: - ref: ${{ (inputs.tag != '' && !inputs.dry_run ) && format('refs/tags/v{0}', inputs.tag) || github.ref }} + ref: ${{ (inputs.tag != '' && !inputs.dry_run ) && format('refs/tags/{0}', inputs.tag) || github.ref }} - name: Download Artifacts uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2c3b9a2932..698818bc88 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -464,6 +464,7 @@ jobs: with: image: ${{ matrix.image }} k8s-version: ${{ matrix.k8s-version }} + tag: ${{ inputs.release_version || '' }} secrets: inherit if: ${{ needs.vars.outputs.helm_changes == 'true' || github.event_name == 'schedule' }} diff --git a/.github/workflows/helm.yml b/.github/workflows/helm.yml index 420b321cc4..cf6ad99843 100644 --- a/.github/workflows/helm.yml +++ b/.github/workflows/helm.yml @@ -9,6 +9,10 @@ on: k8s-version: required: true type: string + tag: + required: false + type: string + default: '' permissions: contents: read @@ -44,6 +48,8 @@ jobs: type=edge type=schedule type=ref,event=pr + type=ref,event=branch,suffix=-rc,enable=${{ startsWith(github.ref, 'refs/heads/release') && inputs.tag == '' }} + type=raw,value=${{ inputs.tag }},enable=${{ inputs.tag != '' }} - name: NGINX Docker meta id: nginx-meta @@ -56,6 +62,8 @@ jobs: type=edge type=schedule type=ref,event=pr + type=ref,event=branch,suffix=-rc,enable=${{ startsWith(github.ref, 'refs/heads/release') && inputs.tag == '' }} + type=raw,value=${{ inputs.tag }},enable=${{ inputs.tag != '' }} - name: Build NGF Docker Image uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0