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:
@@ -4,13 +4,13 @@ name: release
|
|||||||
#
|
#
|
||||||
# push to main → :main
|
# push to main → :main
|
||||||
# push tag vX.Y.Z → :vX.Y.Z and :latest
|
# push tag vX.Y.Z → :vX.Y.Z and :latest
|
||||||
#
|
# workflow_dispatch → manual trigger (same rules based on the ref)
|
||||||
# No-ops cleanly until the server skeleton (go.mod + Dockerfile) lands.
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
tags: ['v*']
|
tags: ['v*']
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
@@ -34,6 +34,21 @@ jobs:
|
|||||||
echo "::notice::No Dockerfile + go.mod yet — release build skipped"
|
echo "::notice::No Dockerfile + go.mod yet — release build skipped"
|
||||||
fi
|
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
|
- name: Compute image tags
|
||||||
id: tags
|
id: tags
|
||||||
if: steps.guard.outputs.ready == 'true'
|
if: steps.guard.outputs.ready == 'true'
|
||||||
|
|||||||
Reference in New Issue
Block a user