diff --git a/.github/workflows/ghcr-publish.yml b/.github/workflows/ghcr-publish.yml index 73dfa8be1..66a22ca02 100644 --- a/.github/workflows/ghcr-publish.yml +++ b/.github/workflows/ghcr-publish.yml @@ -1,8 +1,10 @@ -# Build and push ghcr.io/linkpoolio/erpc: from an arbitrary git ref. -# Uses GITHUB_TOKEN (packages:write) — same pattern as docker-images / release.yml. +# Build and push ghcr.io/linkpoolio/docker-images/erpc: from an arbitrary git ref. +# Uses the existing docker-images GHCR namespace (same registry path family as other LinkPool images). +# Auth: GITHUB_TOKEN with packages:write. May require package Actions access for linkpoolio/erpc +# if the package is owned/linked to docker-images. # # Run: Actions → "Publish to GHCR" → workflow_dispatch -# tag: pin-near-tip-getblock-test9 +# tag: ws-pin-near-tip-test9 # ref: feat/websocket-support name: Publish to GHCR @@ -15,7 +17,7 @@ on: workflow_dispatch: inputs: tag: - description: "Image tag to push (e.g. pin-near-tip-getblock-test9)" + description: "Image tag to push (e.g. ws-pin-near-tip-test9)" required: true type: string ref: @@ -50,11 +52,11 @@ jobs: set -euo pipefail SHA="$(git rev-parse HEAD)" SHORT="$(git rev-parse --short HEAD)" - REPO="${GITHUB_REPOSITORY,,}" + IMAGE="ghcr.io/linkpoolio/docker-images/erpc" echo "sha=${SHA}" >> "$GITHUB_OUTPUT" echo "short_sha=${SHORT}" >> "$GITHUB_OUTPUT" - echo "image=ghcr.io/${REPO}" >> "$GITHUB_OUTPUT" - echo "Building ref=${{ inputs.ref }} sha=${SHORT} → ghcr.io/${REPO}:${{ inputs.tag }}" + echo "image=${IMAGE}" >> "$GITHUB_OUTPUT" + echo "Building ref=${{ inputs.ref }} sha=${SHORT} → ${IMAGE}:${{ inputs.tag }}" - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 @@ -63,7 +65,7 @@ jobs: uses: docker/login-action@v3 with: registry: ghcr.io - username: ${{ github.actor }} + username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push