🌱 [backport release-0.3] Test image build when build related files change (#1907) #1915
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.
If the workflow is run from a PR, and the PR includes a change to the
Dockerfile
orpackage-lock.json
, then run image builds for all of our target platforms.The images are built but not pushed to any repository.
We want to be reasonably sure that any major build file changes will not cause the image-build-and-push on PR merge workflow to break. Doing the image build here should reveal most problems much earlier. For example, a npm version update in the build container could break github action
nofiles
or network access capabilities for the npm install.See #1742, #1746, and #1781 for some other examples of when this check could have caught issues before a PR merge.
Supports: #1883
Backport-of: #1907
Note: build architectures updated to match the settings on the backport target branch