fix(ci): replace heredoc JSON with printf in publish workflows

The heredoc block writing Docker config.json had unindented `{` at
column 1, which GitHub Actions' YAML parser interpreted as a flow
mapping start — causing every publish-platform-image and
publish-canvas-image run to fail with 0 jobs (startup_failure).

Replace `cat <<'JSON' ... JSON` with a single `printf` call that
produces identical config.json content without confusing the parser.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Hongming Wang 2026-04-16 08:20:43 -07:00
parent a3748ec090
commit dbe96ca11d
2 changed files with 7 additions and 21 deletions

View File

@ -53,17 +53,11 @@ jobs:
run: |
set -euo pipefail
mkdir -p "${RUNNER_TEMP}/docker-config"
cat > "${RUNNER_TEMP}/docker-config/config.json" <<'JSON'
{
"auths": {},
"credsStore": "",
"credHelpers": {}
}
JSON
printf '{"auths":{},"credsStore":"","credHelpers":{}}\n' > "${RUNNER_TEMP}/docker-config/config.json"
echo "DOCKER_CONFIG=${RUNNER_TEMP}/docker-config" >> "${GITHUB_ENV}"
echo "=== config.json ==="
cat "${RUNNER_TEMP}/docker-config/config.json"
echo "=== Runner docker diagnostics ==="
echo "=== docker ==="
command -v docker || echo "(docker not in PATH)"
docker --version 2>&1 || true

View File

@ -66,21 +66,13 @@ jobs:
run: |
set -euo pipefail
mkdir -p "${RUNNER_TEMP}/docker-config"
cat > "${RUNNER_TEMP}/docker-config/config.json" <<'JSON'
{
"auths": {},
"credsStore": "",
"credHelpers": {}
}
JSON
printf '{"auths":{},"credsStore":"","credHelpers":{}}\n' > "${RUNNER_TEMP}/docker-config/config.json"
echo "DOCKER_CONFIG=${RUNNER_TEMP}/docker-config" >> "${GITHUB_ENV}"
echo "=== Runner docker diagnostics ==="
echo "PATH=$PATH"
command -v docker || echo "(docker not in PATH — the runner is missing the Docker CLI or it's not symlinked to a visible location)"
docker --version 2>&1 || true
ls -la /usr/local/bin/docker /opt/homebrew/bin/docker 2>&1 || true
echo "=== config.json after setup ==="
echo "=== config.json ==="
cat "${RUNNER_TEMP}/docker-config/config.json"
echo "=== docker ==="
command -v docker || echo "(docker not in PATH)"
docker --version 2>&1 || true
- name: Set up QEMU
# Required on the Apple-silicon self-hosted runner — Fly tenant machines