Files
gitea-actions-demo-project/.gitea
Nikola Derežić 071dd5b647
All checks were successful
Build and Push Docker Image / check_version (push) Successful in 7s
Build and Push Docker Image / check_image_version (push) Successful in 9s
Build and Push Docker Image / build (push) Has been skipped
(feature) add registry image check and workflow documentation
Added check_image_version job that verifies if Docker image already exists in registry using docker manifest inspect. This prevents redundant builds while handling registry cleanup scenarios. Also added explanatory comments above all jobs.

Key changes:
- New check_image_version job runs in parallel with check_version
- Uses docker manifest inspect for lightweight image existence check
- Build now uses OR logic: version changed OR image missing OR PR
- Both check jobs run independently for faster parallel execution
- Added comments explaining each job's purpose and build conditions

Build logic:
- Builds when version changed (new release)
- Builds when image missing from registry (handles cleanup)
- Always builds PRs (validation requirement)
- Skips only when version unchanged AND image exists

Benefits:
- Comprehensive checking of both git history and registry state
- Handles registry cleanup without manual intervention
- Clear documentation of workflow logic
- Parallel job execution for faster workflow runs

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-09 14:36:25 +01:00
..