From 2db09725f8cff6cc36d060777bd756fc94b0f4a2 Mon Sep 17 00:00:00 2001 From: curquiza Date: Thu, 25 May 2023 12:16:38 +0200 Subject: [PATCH] Improve SDK CI to choose the Docker image --- .github/workflows/sdks-tests.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/sdks-tests.yml b/.github/workflows/sdks-tests.yml index 617b446d1..c3b2c5d87 100644 --- a/.github/workflows/sdks-tests.yml +++ b/.github/workflows/sdks-tests.yml @@ -3,6 +3,11 @@ name: SDKs tests on: workflow_dispatch: + inputs: + docker_image: + description: 'The Meilisearch Docker image used' + required: false + default: nightly schedule: - cron: "0 6 * * MON" # Every Monday at 6:00AM @@ -17,7 +22,7 @@ jobs: runs-on: ubuntu-latest services: meilisearch: - image: getmeili/meilisearch:nightly + image: getmeili/meilisearch:${{ github.event.inputs.docker_image }} env: MEILI_MASTER_KEY: ${{ env.MEILI_MASTER_KEY }} MEILI_NO_ANALYTICS: ${{ env.MEILI_NO_ANALYTICS }} @@ -51,7 +56,7 @@ jobs: runs-on: ubuntu-latest services: meilisearch: - image: getmeili/meilisearch:nightly + image: getmeili/meilisearch:${{ github.event.inputs.docker_image }} env: MEILI_MASTER_KEY: ${{ env.MEILI_MASTER_KEY }} MEILI_NO_ANALYTICS: ${{ env.MEILI_NO_ANALYTICS }} @@ -77,7 +82,7 @@ jobs: runs-on: ubuntu-latest services: meilisearch: - image: getmeili/meilisearch:nightly + image: getmeili/meilisearch:${{ github.event.inputs.docker_image }} env: MEILI_MASTER_KEY: ${{ env.MEILI_MASTER_KEY }} MEILI_NO_ANALYTICS: ${{ env.MEILI_NO_ANALYTICS }} @@ -107,7 +112,7 @@ jobs: runs-on: ubuntu-latest services: meilisearch: - image: getmeili/meilisearch:nightly + image: getmeili/meilisearch:${{ github.event.inputs.docker_image }} env: MEILI_MASTER_KEY: ${{ env.MEILI_MASTER_KEY }} MEILI_NO_ANALYTICS: ${{ env.MEILI_NO_ANALYTICS }} @@ -131,7 +136,7 @@ jobs: runs-on: ubuntu-latest services: meilisearch: - image: getmeili/meilisearch:nightly + image: getmeili/meilisearch:${{ github.event.inputs.docker_image }} env: MEILI_MASTER_KEY: ${{ env.MEILI_MASTER_KEY }} MEILI_NO_ANALYTICS: ${{ env.MEILI_NO_ANALYTICS }} @@ -160,7 +165,7 @@ jobs: runs-on: ubuntu-latest services: meilisearch: - image: getmeili/meilisearch:nightly + image: getmeili/meilisearch:${{ github.event.inputs.docker_image }} env: MEILI_MASTER_KEY: ${{ env.MEILI_MASTER_KEY }} MEILI_NO_ANALYTICS: ${{ env.MEILI_NO_ANALYTICS }} @@ -184,7 +189,7 @@ jobs: runs-on: ubuntu-latest services: meilisearch: - image: getmeili/meilisearch:nightly + image: getmeili/meilisearch:${{ github.event.inputs.docker_image }} env: MEILI_MASTER_KEY: ${{ env.MEILI_MASTER_KEY }} MEILI_NO_ANALYTICS: ${{ env.MEILI_NO_ANALYTICS }}