diff --git a/.github/actions/get-configuration/action.yml b/.github/actions/get-configuration/action.yml index d9f357f8d0..1be91d27f6 100644 --- a/.github/actions/get-configuration/action.yml +++ b/.github/actions/get-configuration/action.yml @@ -34,7 +34,7 @@ runs: echo "k3d_version=5.7.4" >> $GITHUB_OUTPUT echo "modulectl_version=1.1.3" >> $GITHUB_OUTPUT echo "cert_manager_version=1.15.0" >> $GITHUB_OUTPUT - echo "klm_version_tag=PR-${{ github.event.pull_request.number }}" >> $GITHUB_OUTPUT + echo "klm_version_tag=${{ github.event.inputs.image_tag || format('PR-{0}', github.event.pull_request.number) }}" >> $GITHUB_OUTPUT echo "klm_image_repo=dev" >> $GITHUB_OUTPUT - name: Expose environment variables shell: bash diff --git a/.github/workflows/test-e2e-with-modulereleasemeta.yml b/.github/workflows/test-e2e-with-modulereleasemeta.yml index d81b26e467..defdf57407 100644 --- a/.github/workflows/test-e2e-with-modulereleasemeta.yml +++ b/.github/workflows/test-e2e-with-modulereleasemeta.yml @@ -5,6 +5,9 @@ env: on: workflow_dispatch: inputs: + image_tag: + description: With image tag for KLM image + required: true k8s_version: description: With Kubernetes version required: false @@ -24,7 +27,7 @@ jobs: env: ITERATIONS: 40 SLEEP_SECONDS: 30 - run: ./.github/scripts/release/wait_for_image.sh ${{ env.IMAGE_REPO }}:${{ github.event.pull_request.head.sha }} ${{ env.ITERATIONS }} ${{ env.SLEEP_SECONDS}} + run: ./.github/scripts/release/wait_for_image.sh ${{ env.IMAGE_REPO }}:${{ github.event.inputs.image_tag || github.event.pull_request.head.sha }} ${{ env.ITERATIONS }} ${{ env.SLEEP_SECONDS}} e2e-integration: name: E2E With ModuleReleaseMeta needs: wait-for-image-build diff --git a/.github/workflows/test-e2e.yml b/.github/workflows/test-e2e.yml index 6d11ae881a..c56986bc20 100644 --- a/.github/workflows/test-e2e.yml +++ b/.github/workflows/test-e2e.yml @@ -5,8 +5,11 @@ env: on: workflow_dispatch: inputs: + image_tag: + description: "With image tag for KLM image (format: PR-XXX or full commit SHA)" + required: true k8s_version: - description: With Kubernetes version + description: "With Kubernetes version (format: x.y.z)" required: false pull_request: types: [ opened, edited, synchronize, reopened, ready_for_review ] @@ -24,7 +27,7 @@ jobs: env: ITERATIONS: 40 SLEEP_SECONDS: 30 - run: ./.github/scripts/release/wait_for_image.sh ${{ env.IMAGE_REPO }}:${{ github.event.pull_request.head.sha }} ${{ env.ITERATIONS }} ${{ env.SLEEP_SECONDS}} + run: ./.github/scripts/release/wait_for_image.sh ${{ env.IMAGE_REPO }}:${{ github.event.inputs.image_tag || github.event.pull_request.head.sha }} ${{ env.ITERATIONS }} ${{ env.SLEEP_SECONDS}} e2e-integration: name: E2E needs: wait-for-image-build