feat: use arm64 instances for arm64 platform builds #32
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.
Overview
This PR implements issue #31. It adds support for using ARM64 instances when building container images for ARM64 platform.
Changes
propsToAdditionalStringmethod inSingletonProjectclass to include platform information (amd64/arm64) in the slugcontainer-image-build.tsto select the appropriate build image based on the target platform:LinuxArmBuildImagefor ARM64 buildsLinuxBuildImagefor AMD64 buildsprojectPurposenames for ARM64 build projectsThis change improves build performance for ARM64 platform images by utilizing native ARM64 build environments.
Breaking Changes
This PR contains intentional breaking changes. It replaces existing project resources by creating separate CodeBuild projects per platform. This causes snapshot tests to fail, but it's the expected behavior. The snapshot tests will need to be updated.
Closes #31