mirror of https://github.com/waku-org/js-waku.git
Merge pull request #1510 from waku-org/chore/add-dispatch-to-ci
This commit is contained in:
commit
8537a63d34
|
@ -7,6 +7,12 @@ on:
|
||||||
- "staging"
|
- "staging"
|
||||||
- "trying"
|
- "trying"
|
||||||
pull_request:
|
pull_request:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
nim_wakunode_image:
|
||||||
|
description: "Docker hub image name taken from https://hub.docker.com/r/statusteam/nim-waku/tags. Format: statusteam/nim-waku:v0.19.0"
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
|
||||||
env:
|
env:
|
||||||
NODE_JS: "18"
|
NODE_JS: "18"
|
||||||
|
@ -57,7 +63,7 @@ jobs:
|
||||||
node:
|
node:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
WAKUNODE_IMAGE: "statusteam/nim-waku:v0.19.0"
|
WAKUNODE_IMAGE: ${{ github.event.inputs.nim_wakunode_image || 'statusteam/nim-waku:v0.19.0' }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
@ -88,7 +94,8 @@ jobs:
|
||||||
node_optional:
|
node_optional:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
WAKUNODE_IMAGE: "statusteam/nim-waku:v0.19.0"
|
WAKUNODE_IMAGE: ${{ github.event.inputs.nim_wakunode_image || 'statusteam/nim-waku:v0.19.0' }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
|
|
@ -9,9 +9,9 @@ const WAKUNODE_IMAGE =
|
||||||
async function main() {
|
async function main() {
|
||||||
try {
|
try {
|
||||||
await execAsync(`docker inspect ${WAKUNODE_IMAGE}`);
|
await execAsync(`docker inspect ${WAKUNODE_IMAGE}`);
|
||||||
console.log("Using local image");
|
console.log(`Using local image ${WAKUNODE_IMAGE}`);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log("Pulling image...");
|
console.log(`Pulling image ${WAKUNODE_IMAGE}`);
|
||||||
await execAsync(`docker pull ${WAKUNODE_IMAGE}`);
|
await execAsync(`docker pull ${WAKUNODE_IMAGE}`);
|
||||||
console.log("Image pulled");
|
console.log("Image pulled");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue