Skip to content

Add Docker registry support and release workflow#2

Merged
gricha merged 1 commit intomainfrom
docker-registry-release
Jan 5, 2026
Merged

Add Docker registry support and release workflow#2
gricha merged 1 commit intomainfrom
docker-registry-release

Conversation

@gricha
Copy link
Copy Markdown
Owner

@gricha gricha commented Jan 5, 2026

Summary

  • Pull workspace image from ghcr.io/gricha/perry:<version> when local image not found
  • Fall back to local workspace:latest if registry pull fails
  • Add GitHub Actions release workflow triggered on version tags (v*)
  • Reset version to 0.0.1, add files field for clean npm publishes

How it works

Image resolution order:

  1. Check for local workspace:latest image
  2. Try pulling ghcr.io/gricha/perry:<package-version> from registry
  3. Error with instructions if neither available

Release workflow:

  • Triggered by pushing version tags (e.g., v0.0.2)
  • Builds and pushes Docker image to ghcr.io
  • Publishes npm package

Setup required

  1. Create npm automation token with 2FA bypass
  2. Add NPM_TOKEN secret to GitHub repo

Test plan

  • Verify bun run check passes
  • Test workspace creation with local image
  • Test workspace creation without local image (should pull from registry)
  • Test release workflow with a test tag

🤖 Generated with Claude Code

- Pull workspace image from ghcr.io/gricha/perry:<version> when local image not found
- Fall back to local build if registry pull fails
- Add release workflow that builds/pushes Docker image and publishes to npm
- Reset version to 0.0.1 for fresh start
- Add files field to package.json for clean npm publishes

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@gricha gricha force-pushed the docker-registry-release branch from 34794bb to 85ffd49 Compare January 5, 2026 06:37
@gricha gricha merged commit db90288 into main Jan 5, 2026
1 check failed
@gricha gricha deleted the docker-registry-release branch January 7, 2026 06:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant