8000 Make the GHCR image package public after builds by dominicletz · Pull Request #5 · dominicletz/agentyard · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Oct 16, 2026. It is now read-only.

Make the GHCR image package public after builds - #5

Merged
dominicletz merged 2 commits into
mainfrom
cursor/public-ghcr-image-14a8
Sep 25, 2026
Merged

dominicletz merged 2 commits into
mainfrom
cursor/public-ghcr-image-14a8

Conversation

@dominicletz
@dominicletz dominicletz commented Sep 25, 2026 •
Copy link
Copy Markdown
Owner

Summary

  • add an idempotent GitHub Packages API step after the successful GHCR push
  • use the workflow GITHUB_TOKEN with the existing packages: write permission to PATCH agentyard public
  • leave the production deploy workflow unchanged because Docker Compose reads COMPOSE_PROFILES from the server-side .env; set COMPOSE_PROFILES=caddy and DOMAIN there to enable Caddy

First deploy after merge

  1. Configure the deploy workflow's DEPLOY_HOST, DEPLOY_USER, and DEPLOY_SSH_KEY secrets (plus optional port/path).
  2. Bootstrap the server directory and .env from .env.prod.example, replacing all CHANGE_ME values. Add COMPOSE_PROFILES=caddy and DOMAIN if HTTPS via Caddy is desired.
  3. Merge this PR and let the image workflow complete. It publishes the image and makes ghcr.io/dominicletz/agentyard public; the following production deploy can pull it without GHCR_TOKEN.
  4. The deploy workflow copies the production files and starts the stack. Existing GHCR_TOKEN credentials remain supported as an optional fallback.

Verification

  • git diff --check
  • actionlint .github/workflows/*.yml
  • PyYAML parsing of both workflow files
Open in Web Open in Cursor 

cursoragent and others added 2 commits September 25, 2026 23:12
Co-authored-by: Dominic Letz <dominicletz@users.noreply.github.com>
Co-authored-by: Dominic Letz <dominicletz@users.noreply.github.com>
@dominicletz
dominicletz marked this pull request as ready for review September 25, 2026 23:16
@dominicletz
dominicletz merged commit 3bece14 into main Sep 25, 2026
1 check passed
@dominicletz
dominicletz deleted the cursor/public-ghcr-image-14a8 branch September 25, 2026 23:16
@cursor cursor Bot left a comment
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 5a86c1d. Configure here.

--header "X-GitHub-Api-Version: 2022-11-28" \
--header "Content-Type: application/json" \
--data '{"visibility":"public"}' \
"${{ github.api_url }}/user/packages/container/agentyard"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Visibility PATCH uses unsupported API

High Severity

The new step PATCHes /user/packages/container/agentyard with GITHUB_TOKEN. That packages route only documents GET and DELETE, and /user/ expects a user token rather than the Actions token. curl --fail-with-body then fails the job after the image push, so the workflow_run production deploy never starts.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 5a86c1d. Configure here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0