Only run docker build
CI when Dockerfile
changes.
#631
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.
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
![image](https://private-user-images.githubusercontent.com/774272/410013766-9d98c992-1777-490b-b177-ea2e03466042.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5NTc1NjksIm5iZiI6MTczODk1NzI2OSwicGF0aCI6Ii83NzQyNzIvNDEwMDEzNzY2LTlkOThjOTkyLTE3NzctNDkwYi1iMTc3LWVhMmUwMzQ2NjA0Mi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwN1QxOTQxMDlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xMGVjMDQ1NGQ3Y2M0ODI0MzVmOTY2MWNmNWQ3Y2NmYTY3MjcyOTZmZjc0M2I4YzE5MDMzYmFlNWU5MzUyYjE0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.g6j1cHlcpMtNxybwfFdq0wEi9aNDdYTCo5lp71Cfqbs)
Dockerfile
. Check the CI run and confirm the "Test Docker Container" job did not run:Look at 23997fe. Confirm there was a change to the
![image](https://private-user-images.githubusercontent.com/774272/410014810-22aaa46a-0eb2-43c3-b3e8-110c869b7f98.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5NTc1NjksIm5iZiI6MTczODk1NzI2OSwicGF0aCI6Ii83NzQyNzIvNDEwMDE0ODEwLTIyYWFhNDZhLTBlYjItNDNjMy1iM2U4LTExMGM4NjliN2Y5OC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwN1QxOTQxMDlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00NDc4OWFhZGUyZGQ2NzRmNzZkYjU5ZGE4ZjgwMGFmNjEwM2I5YmZlNTVjOGU3NTFiMjAzMTViMmZjMzMzY2QyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9._uaS_U4rmI3pNfmq2La_-TK_ZVbfHHJOylLnwv_q0Ok)
Dockerfile
. Check the CI run and confirm the "Test Docker Container" job ran:What the reviewer should know