Skip to content

Commit 8c20867

Browse files
committed
chore: include the supabase release on disk
1 parent f149ad9 commit 8c20867

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

amazon-arm64.pkr.hcl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ build {
238238
"DOCKER_PASSWD=${var.docker_passwd}",
239239
"DOCKER_IMAGE=${var.docker_image}",
240240
"DOCKER_IMAGE_TAG=${var.docker_image_tag}"
241+
"POSTGRES_SUPABASE_VERSION=${var.postgres-version}"
241242
]
242243
use_env_var_file = true
243244
script = "ebssurrogate/scripts/surrogate-bootstrap.sh"

ebssurrogate/scripts/surrogate-bootstrap.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ function setup_chroot_environment {
182182
cp /tmp/chroot-bootstrap.sh /mnt/tmp/chroot-bootstrap.sh
183183
chroot /mnt /tmp/chroot-bootstrap.sh
184184
rm -f /mnt/tmp/chroot-bootstrap.sh
185+
echo "${POSTGRES_SUPABASE_VERSION}" > /mnt/root/supabase-release
185186

186187
# Copy the nvme identification script into /sbin inside the chroot
187188
mkdir -p /mnt/sbin

0 commit comments

Comments
 (0)