Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions .github/workflows/ghcr-publish.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Build and push ghcr.io/linkpoolio/erpc:<tag> 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:<tag> 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
Expand All @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
Loading