Skip to content

Conversation

@tekenstam
Copy link
Member

Fix Docker image build in GitHub Actions workflow

Issue

The GitHub Actions workflow to build and push Docker images was failing with the error:

ERROR: failed to solve: failed to read dockerfile: open Dockerfile: no such file or directory

Root Cause

The merge-and-push job was missing the actions/checkout@v4 step, so the repository content (including the Dockerfile) wasn't available in this job's runner environment. In GitHub Actions, each job runs in a completely fresh environment, requiring explicit repository checkout.

Solution

Added the actions/checkout@v4 step to the beginning of the merge-and-push job to ensure the Dockerfile and other repository files are available during the Docker build process.

Testing

This change can be verified when the workflow runs on this branch.

@tekenstam tekenstam requested review from a team as code owners April 14, 2025 21:07
@tekenstam tekenstam merged commit 683b76f into master Apr 14, 2025
6 checks passed
@tekenstam tekenstam deleted the fix-workflow-checkout branch April 14, 2025 21:07
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 46.13%. Comparing base (444e1fb) to head (3043867).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #482   +/-   ##
=======================================
  Coverage   46.13%   46.13%           
=======================================
  Files          40       40           
  Lines        7004     7004           
=======================================
  Hits         3231     3231           
  Misses       3617     3617           
  Partials      156      156           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants