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:
parent
a3748ec090
commit
dbe96ca11d
10
.github/workflows/publish-canvas-image.yml
vendored
10
.github/workflows/publish-canvas-image.yml
vendored
@ -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
|
||||
|
||||
|
||||
18
.github/workflows/publish-platform-image.yml
vendored
18
.github/workflows/publish-platform-image.yml
vendored
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user