From 617622c3ec321c32f16fafe1ac26ebeb8cebca32 Mon Sep 17 00:00:00 2001 From: fbarbu15 Date: Thu, 24 Aug 2023 14:03:44 +0300 Subject: [PATCH] manually triggerr ci with custom nim node image --- .github/workflows/ci.yml | 9 +++++++-- packages/tests/src/run-tests.js | 4 ++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 358cc17260..1f75aaebe8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,11 @@ on: - "staging" - "trying" pull_request: + workflow_dispatch: + inputs: + nim_wakunode_image: + required: false + type: string env: NODE_JS: "18" @@ -57,7 +62,7 @@ jobs: node: runs-on: ubuntu-latest env: - WAKUNODE_IMAGE: "statusteam/nim-waku:v0.19.0" + WAKUNODE_IMAGE: ${{ github.events.inputs.nim_wakunode_image || "statusteam/nim-waku:v0.19.0" }} steps: - uses: actions/checkout@v3 @@ -88,7 +93,7 @@ jobs: node_optional: runs-on: ubuntu-latest env: - WAKUNODE_IMAGE: "statusteam/nim-waku:v0.19.0" + WAKUNODE_IMAGE: ${{ github.events.inputs.nim_wakunode_image || "statusteam/nim-waku:v0.19.0" }} steps: - uses: actions/checkout@v3 diff --git a/packages/tests/src/run-tests.js b/packages/tests/src/run-tests.js index 775a6add36..4adb866386 100644 --- a/packages/tests/src/run-tests.js +++ b/packages/tests/src/run-tests.js @@ -9,9 +9,9 @@ const WAKUNODE_IMAGE = async function main() { try { await execAsync(`docker inspect ${WAKUNODE_IMAGE}`); - console.log("Using local image"); + console.log(`Using local image ${WAKUNODE_IMAGE}`); } catch (error) { - console.log("Pulling image..."); + console.log(`Pulling image ${WAKUNODE_IMAGE}`); await execAsync(`docker pull ${WAKUNODE_IMAGE}`); console.log("Image pulled"); }