-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Dockerfile path in docker publish YAML #367
Conversation
WalkthroughThe pull request updates the workflow configurations for Docker publishing in two YAML files. The context for the Docker build in Changes
Possibly related PRs
Suggested labels
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
🧹 Outside diff range and nitpick comments (1)
.github/workflows/base-docker-publish.yml (1)
29-29
: Consider quoting the VERSION variable for better safety.While the current implementation works, it's a good practice to quote variables in shell commands to prevent potential issues with special characters or whitespace.
Consider updating the command as follows:
- run: docker buildx build --platform linux/amd64,linux/arm64 -t yorkieteam/codepair:$VERSION --push . + run: docker buildx build --platform linux/amd64,linux/arm64 -t yorkieteam/codepair:"$VERSION" --push .This change adds quotes around
$VERSION
, making the command more robust against potential special characters in version strings.🧰 Tools
🪛 actionlint
29-29: shellcheck reported issue in this script: SC2086:info:1:79: Double quote to prevent globbing and word splitting
(shellcheck)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (2)
- .github/workflows/base-docker-publish.yml (1 hunks)
- .github/workflows/docker-publish-latest.yaml (1 hunks)
🧰 Additional context used
🪛 actionlint
.github/workflows/base-docker-publish.yml
29-29: shellcheck reported issue in this script: SC2086:info:1:79: Double quote to prevent globbing and word splitting
(shellcheck)
🔇 Additional comments (1)
.github/workflows/base-docker-publish.yml (1)
29-29
: LGTM! Context change aligns with Dockerfile relocation.The change from
./backend
to.
as the build context is correct and necessary. This adjustment ensures that the Docker build process looks for the Dockerfile in the root directory of the repository, which aligns with the PR objective of updating the path after moving the Dockerfile.🧰 Tools
🪛 actionlint
29-29: shellcheck reported issue in this script: SC2086:info:1:79: Double quote to prevent globbing and word splitting
(shellcheck)
8141a2a
to
9801f64
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution.
* Fix Dockerfile path in docker-publish workflow * Fix docker-publish-latest.yaml * Change prisma schema generation command
* Fix Dockerfile path in docker-publish workflow * Fix docker-publish-latest.yaml * Change prisma schema generation command
What this PR does / why we need it?
This PR fixes the Dockerfile path in the docker publish YAML file. The Dockerfile was previously located in the backend folder and has now been moved to the root of the repository. This change ensures that the build process can correctly locate the Dockerfile.
Any background context you want to provide?
The relocation of the Dockerfile necessitated updates to the configuration files that reference its path. This change is important for maintaining the integrity of the build and deployment processes within our CI/CD pipeline.
What are the relevant tickets?
Fixes #
Checklist
Summary by CodeRabbit
Dockerfile
, optimizing the deployment process.