Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[actions] Build docker container when Dockerfile are modified
When any Dockerfile is modified, we should rebuild the container before running the CI. Failing to do so, we would need to: 1) land the docker file change in order to incorporate the change 2) land the charge that uses this new dockerfile change This is cumbersome and it is hard to make sure that changes to the dockerfile are indeed correct. This change conditionally pull the pre-built image if no dockerfile change happened. Otherwise it reuses the "build_container" action to build the image. This commit should confirm that we indeed pull when no dockerfile are changed. A subsequent commit will modify a Dockerfile and confirm that in that case, we indeed build the container.
- Loading branch information