supabase-postgres.git / summary / log / commit / refs
commit af89221bf7c811ca1f9b207f62b2dc166f33a2fd
Author: Manuel Mendez <708570+mmlb@users.noreply.github.com>
Commit: GitHub <noreply@github.com>
Date: Fri Jun 26 18:23:47 2026 +0000
ami: Re-arrange some values (#2239)
Drop run_id from the ami name as its load bearing in supadev and is
likely to show up in front of customers (definitely from admin page),
this needs to change.
Also re-arranged the PACKER_EXECUTION_ID so that it sorts better. Having
the run_id at the front is pretty useless for sorting/searching since
each individual build gets its own run id, thus no 2 AMIs will ever have
the same runid. If we move it to the end then we can sort/filter by
postgres_version too. This can probably all go away at some point, we
have better ways to find images from the same "cohort" (inputHash?) and
can make PACKER_EXECUTION_ID just be gha run_id or default to
date+$RANDOM.
.github/actions/build-ami/action.yml | 2 +-
.github/workflows/ami-release-nix.yml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/actions/build-ami/action.yml b/.github/actions/build-ami/action.yml
index 83602334..1c5abff4 100644
--- a/.github/actions/build-ami/action.yml
+++ b/.github/actions/build-ami/action.yml
@@ -52,7 +52,7 @@ runs:
id: set-execution-id
shell: bash
run: |
- PACKER_EXECUTION_ID="${{ github.run_id }}-${{ inputs.postgres_version }}-${{ inputs.arch }}"
+ PACKER_EXECUTION_ID="${{ inputs.postgres_version }}-${{ inputs.arch }}-${{ github.run_id }}"
echo "PACKER_EXECUTION_ID=$PACKER_EXECUTION_ID" >> $GITHUB_ENV
echo "execution_id=$PACKER_EXECUTION_ID" >> $GITHUB_OUTPUT
diff --git a/.github/workflows/ami-release-nix.yml b/.github/workflows/ami-release-nix.yml
index 0cab5865..a04c9c1d 100644
--- a/.github/workflows/ami-release-nix.yml
+++ b/.github/workflows/ami-release-nix.yml
@@ -89,7 +89,7 @@ jobs:
id: build-ami
uses: ./.github/actions/build-ami
with:
- ami_name_prefix: "supabase-postgres-${{ github.run_id }}-${{ matrix.target.arch }}"
+ ami_name_prefix: "supabase-postgres-${{ matrix.target.arch }}"
ami_regions: '["${{ env.AWS_REGION }}"]'
arch: ${{ matrix.target.arch }}
force: "true"
[parent: 919dc4df3f61]