1
0
Fork 0
mirror of https://github.com/imjasonh/krust synced 2026-07-08 06:45:32 +00:00

fix: remove automatic image tagging, make it optional

Images are now pushed by digest only by default, with optional tagging
via the new --tag flag. This addresses issue #27 by ensuring:

- No automatic :latest tags are applied during build
- Platform-specific images are never tagged for external use
- Only manifest lists can receive tags when explicitly requested
- Default behavior outputs digest-only references for reproducibility

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Jason Hall 2025-06-08 19:42:00 -04:00
parent 7d098d87b3
commit 6228bce97b
Failed to extract signature
4 changed files with 45 additions and 108 deletions

View file

@ -94,3 +94,16 @@ check-code:
# Run all checks (format, lint, test)
check: check-fmt lint test
push-ttl:
@echo "Pushing to ttl.sh..."
KRUST_REPO=ttl.sh/jason cargo run build ./example/hello-krust
push-gar:
@echo "Pushing to gar.sh..."
KRUST_REPO=us-central1-docker.pkg.dev/jason-chainguard/krust cargo run build ./example/hello-krust
run-built-image:
@image=$$(KRUST_REPO=ttl.sh/jason cargo run build ./example/hello-krust) && \
echo "Running image: $$image" && \
docker run --rm $$image