-
Notifications
You must be signed in to change notification settings - Fork 3
Add Docker support for local development (closes #2) #3
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
Add Docker support for local development (closes #2) #3
Conversation
|
Hi @ashhley04, The workflow is failing because the To fix this, we can conditionally skip the login step for pull request events. Example fix: - name: Log in to Docker Hub
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} |
AryanSharma9917
left a comment
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.
You need to update the GitHub Actions workflow file to conditionally skip the Docker login step for pull request events.
@rakshitsharma0402 please review the PR and see the previous comments. Workflow is failing the reason being docker requires ID and pass so in the workflow what we can do is skip this part of checking the authentication and move ahead. |
|
Hello @AryanSharma9917,
Please review and let me know if any further adjustments are needed. |
|
LGTM! Thanks @ashhley04 for the contribution. |
AryanSharma9917
left a comment
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.
LGTM
Title:
Add Docker support and Prometheus metrics for FastAPI
Description:
This PR addresses Issue #2: Add Docker Support for Local Development.
Changes included:
Benefit:
How to test: