Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 20 additions & 6 deletions .github/workflows/e2e-subtensor-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:
workflow_dispatch:
inputs:
docker_image_tag:
description: "Docker image tag"
description: "Standard docker image tag (ignored if custom tag is set below)"
required: false
type: choice
default: "devnet-ready"
Expand All @@ -26,6 +26,11 @@ on:
- testnet
- devnet
- devnet-ready
custom_image_tag:
description: "Custom docker image tag — overrides selection above (e.g. pr-2441)"
required: false
type: string
default: ""

# job to run tests in parallel
jobs:
Expand Down Expand Up @@ -109,16 +114,25 @@ jobs:
id: set-image
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
INPUT_CUSTOM_TAG: ${{ github.event.inputs.custom_image_tag }}
INPUT_CHOICE_TAG: ${{ github.event.inputs.docker_image_tag }}
run: |
echo "Event: $GITHUB_EVENT_NAME"
echo "Branch: $GITHUB_REF_NAME"

# Check if docker_image_tag input is provided (for workflow_dispatch)
if [[ "${GITHUB_EVENT_NAME}" == "workflow_dispatch" ]]; then
docker_tag_input="${{ github.event.inputs.docker_image_tag }}"
if [[ -n "$docker_tag_input" ]]; then
image="ghcr.io/opentensor/subtensor-localnet:${docker_tag_input}"
echo "Using Docker image tag from workflow_dispatch input: ${docker_tag_input}"
custom_tag=$(echo "$INPUT_CUSTOM_TAG" | xargs)
if [[ -n "$custom_tag" ]]; then
image="ghcr.io/opentensor/subtensor-localnet:${custom_tag}"
echo "Using custom docker image tag: ${custom_tag}"
echo "✅ Final selected image: $image"
echo "image=$image" >> "$GITHUB_OUTPUT"
exit 0
fi

if [[ -n "$INPUT_CHOICE_TAG" ]]; then
image="ghcr.io/opentensor/subtensor-localnet:${INPUT_CHOICE_TAG}"
echo "Using standard docker image tag: ${INPUT_CHOICE_TAG}"
echo "✅ Final selected image: $image"
echo "image=$image" >> "$GITHUB_OUTPUT"
exit 0
Expand Down
Loading