Skip to content
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

Only run docker build CI when Dockerfile changes. #631

Merged
merged 1 commit into from
Feb 5, 2025

Conversation

jasonforal
Copy link
Collaborator

@jasonforal jasonforal commented Feb 5, 2025

What problem are you trying to solve?

CI takes longer than necessary to run because compiling a Docker image is relatively time-consuming. We only need to do this test when the Dockerfile actually changes.

What is your solution?

Testing

Look at f65e3a0. Confirm there were no changes to the Dockerfile. Check the CI run and confirm the "Test Docker Container" job did not run:
image

Look at 23997fe. Confirm there was a change to the Dockerfile. Check the CI run and confirm the "Test Docker Container" job ran:
image

What the reviewer should know

  • 23997fe will be squashed away before the PR is merged.

@jasonforal jasonforal marked this pull request as ready for review February 5, 2025 13:46
@jasonforal jasonforal requested a review from a team as a code owner February 5, 2025 13:46
@jasonforal jasonforal requested a review from amaanq February 5, 2025 13:51
@jasonforal
Copy link
Collaborator Author

Squashing 23997fe away and merging.

@jasonforal jasonforal merged commit 5ce4cbb into main Feb 5, 2025
144 checks passed
@jasonforal jasonforal deleted the jf/docker-build branch February 5, 2025 23:24
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.

2 participants