Skip to content
Closed
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
18 changes: 10 additions & 8 deletions .github/workflows/release-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ jobs:
- /var/run/docker.sock:/var/run/docker.sock
env:
OPENSHELL_REGISTRY_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# The CI container mounts the host Docker socket, so the gateway
# container is a sibling — not reachable at 127.0.0.1 from inside
# this container. OPENSHELL_GATEWAY_HOST tells the auto-bootstrap
# to advertise a reachable address instead.
OPENSHELL_GATEWAY_HOST: host.docker.internal
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -90,18 +95,15 @@ jobs:
echo "${BRIDGE_IP} host.docker.internal" >> /etc/hosts
fi

- name: Start gateway
env:
# Use OPENSHELL_GATEWAY_HOST when supported (CLI >= next release),
# fall back to the explicit --gateway-host flag for older CLIs.
OPENSHELL_GATEWAY_HOST: host.docker.internal
run: openshell gateway start --gateway-host host.docker.internal

- name: Run canary test
run: |
set -euo pipefail

echo "Creating sandbox and running 'echo hello world'..."
# Single-command canary: tests the full zero-to-sandbox path.
# `sandbox create` detects no gateway, auto-bootstraps one (using
# OPENSHELL_GATEWAY_HOST for the advertised address), then creates
# a sandbox and runs the command inside it.
echo "Creating sandbox (with auto-bootstrap) and running 'echo hello world'..."
OUTPUT=$(openshell sandbox create --no-keep --no-tty -- echo "hello world" 2>&1) || {
EXIT_CODE=$?
echo "::error::openshell sandbox create failed with exit code ${EXIT_CODE}"
Expand Down
Loading