HarnessRouter Community Edition: the self-hosted, Apache-2.0 edition of the unified interface for agent harnesses. Run Codex, Claude Code, Hermes, PI, DSH, and more through one API, with sessions, streaming, files, cancellation, and failure handling. Implements the Unified Harness Protocol (UHP), an open standard. Your keys, your infrastructure.
Python agent-apiagent-frameworkagent-harnessai-agentsai-infrastructurecoding-agentconformance-testingdeepseek-harnessharness-engineeringhermesllmopen-protocolopen-sourceopen-standardpi-coding-agentself-hosteduhpunified-apiunified-harness-protocolunified-interface
ops: a workflow that deletes release-candidate tags from Docker Hub (#141)
github-actions[bot]3c48865d6e53
diff --git a/.github/workflows/hub-cleanup.yml b/.github/workflows/hub-cleanup.ymlnew file mode 100644index 00000000..b8d25b96--- /dev/null+++ b/.github/workflows/hub-cleanup.yml@@ -0,0 +1,38 @@+# Delete release-candidate tags from Docker Hub.+#+# A candidate is built from a branch, tested as an image on the test instance, then superseded by+# the release cut from main. The VM keeps only the current image, but nothing ever removed the+# candidates from the Hub, and by 0.15.7 twelve of them sat beside the releases. This is the one+# place a delete can run: the Hub credential lives only in this repository's secrets. Only tags+# with "-rc." in the name are accepted; a numbered release is never deleted here.+name: hub-cleanup+on:+ workflow_dispatch:+ inputs:+ tags:+ description: Comma-separated release-candidate tags to delete (each must contain "-rc.")+ required: true+ type: string+jobs:+ delete:+ runs-on: ubuntu-latest+ steps:+ - name: Delete the named release-candidate tags+ env:+ DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}+ DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}+ TAGS: ${{ inputs.tags }}+ run: |+ set -eu+ jwt=$(curl -sf -X POST https://hub.docker.com/v2/users/login -H 'Content-Type: application/json' \+ -d "{\"username\":\"$DOCKERHUB_USERNAME\",\"password\":\"$DOCKERHUB_TOKEN\"}" \+ | python3 -c 'import json,sys; print(json.load(sys.stdin)["token"])')+ fail=0+ for t in $(printf '%s' "$TAGS" | tr ',' ' '); do+ case "$t" in *-rc.*) ;; *) echo "refused: $t is not a release candidate"; fail=1; continue ;; esac+ code=$(curl -s -o /dev/null -w '%{http_code}' -X DELETE -H "Authorization: JWT $jwt" \+ "https://hub.docker.com/v2/repositories/harnessrouter/harnessrouter/tags/$t/")+ echo "$t -> HTTP $code"+ [ "$code" = "204" ] || fail=1+ done+ exit $fail