Refactor CI/CD workflows to improve Docker image tagging and build logic#36
Merged
Refactor CI/CD workflows to improve Docker image tagging and build logic#36
Conversation
…logic - Updated build.yml to introduce a new step for resolving image tags and checking their existence before building. - Enhanced output variables to include image_tag and version_tag for better deployment clarity. - Modified prod.yml and staging.yml to reference the new image_tag output, ensuring accurate image deployment. - Improved conditional checks to skip builds if the image already exists in ECR, optimizing the workflow.
…less of ECR state - Updated build.yml to always build images for Docker Hub releases when specified, improving deployment flexibility. - Modified conditional checks to skip builds only if the image exists in ECR and not for Docker Hub releases.
- Removed the condition that forced builds for Docker Hub releases, allowing builds to be skipped if the image already exists in ECR. - Simplified the logic for determining whether a build is necessary, enhancing workflow efficiency.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of Changes
This PR refactors the GitHub Actions CI/CD workflows to enhance the build process with improved Docker image tagging strategy and streamlined build logic across all environments.
Key Improvements
.github/workflows/build.ymlwith improved image tagging logic and more robust build processesTechnical Changes
Build Pipeline: Refactored main build workflow with 133+ new lines focusing on:
Environment Workflows: Minor but important updates to production and staging workflows to maintain consistency with the new build process
Breaking Changes
Testing Notes for Reviewers
CI/CD Testing:
Workflow Validation:
Browser Compatibility Considerations
No direct browser compatibility impact expected as this is an infrastructure change. However:
Deployment Notes
🤖 Generated with Claude Code
Branch Info:
refactor/improved-build-processmainCo-Authored-By: Claude noreply@anthropic.com