You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add stage 1 AMI build caching based on input hash (#1954)
* feat(nix): add stage 1 AMI build caching based on input hash
Implement content-based caching for stage 1 AMI builds by computing a hash from all input sources.
Then the build-ami script checks for existing AMIs with matching input hash before building.
* refactor(ci): extract common AMI build logic into reusable action and add actionlint
Consolidate duplicate AMI build steps across workflows into a shared
composite action. Also introduces actionlint configuration for GitHub
Actions validation for the modified workflows.
* fix: always set AWS region for AWS-related actions
* fix: nix step parameters
* fix: declare different ami name prefix for test and release builds
In order to differentiate AMIs built for testing and those built for
release, we need different AMI name. This commit introduces a new input
parameter `ami_name_prefix`. For test builds, we set this prefix to
include the GitHub run ID, ensuring uniqueness across test builds. For
release builds, we use a static prefix "supabase-postgres".
* chore: remove unused force-deregister variable from stage 2 AMI build
The force-deregister variable is not used in the stage2-nix-psql.pkr.hcl
* chore: remove unused packer variables
* chore: display published AMI names in GitHub Actions logs
* chore(ci): use the same matrix title format as testinfra-ami-build workflow
We changed the version extraction in `testinfra-ami-build.yml` to avoid
the quotes around the version numbers. This commit makes the same change
in `test.yml` to keep things consistent.
0 commit comments