ci(release): add workflow_dispatch + docker diagnostics (#2)

Enables manual retrigger of release.yml and dumps docker/buildx state
before the build so the next failure is diagnosable without guessing
at socket mounts or buildx driver setup.
This commit was merged in pull request #2.
This commit is contained in:
2026-04-18 23:21:17 +00:00
+17 -2
View File
@@ -4,13 +4,13 @@ name: release
#
# push to main → :main
# push tag vX.Y.Z → :vX.Y.Z and :latest
#
# No-ops cleanly until the server skeleton (go.mod + Dockerfile) lands.
# workflow_dispatch → manual trigger (same rules based on the ref)
on:
push:
branches: [main]
tags: ['v*']
workflow_dispatch:
jobs:
release:
@@ -34,6 +34,21 @@ jobs:
echo "::notice::No Dockerfile + go.mod yet — release build skipped"
fi
- name: Docker environment diagnostics
if: steps.guard.outputs.ready == 'true'
shell: bash
run: |
echo "--- whoami + env ---"
id
echo "DOCKER_HOST=${DOCKER_HOST:-<unset>}"
ls -la /var/run/docker.sock || echo "NO socket at /var/run/docker.sock"
echo "--- docker info ---"
docker version || true
docker info || true
echo "--- buildx ---"
docker buildx version || true
docker buildx ls || true
- name: Compute image tags
id: tags
if: steps.guard.outputs.ready == 'true'