Skip to content

Commit ab7f879

Browse files
soedirgopcnc
andauthored
feat: change bootstrap user to supabase_admin upon upgrade (#1125)
* feat: change bootstrap user to supabase_admin upon upgrade * chore: bump version * fix: account for procedures * fix: only update pg_hba.conf if needed * chore: persist file in pg_upgrade_scripts directory; run only when targeting PG16 * chore: revert PG16 gating * Revert "chore: persist file in pg_upgrade_scripts directory; run only when targeting PG16" This reverts commit 376a934. * Update common-nix.vars.pkr.hcl --------- Co-authored-by: Paul Cioanca <[email protected]>
1 parent d2fd531 commit ab7f879

File tree

17 files changed

+484
-38
lines changed

17 files changed

+484
-38
lines changed

Diff for: .github/workflows/test.yml

+1-5
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
target: production
4545
build-args: |
4646
${{ steps.args.outputs.result }}
47-
tags: supabase/postgres:${{ steps.settings.outputs.postgres-version }}
47+
tags: supabase/postgres:${{ steps.settings.outputs.postgres-version }},supabase_postgres
4848
cache-from: |
4949
type=gha,scope=${{ github.ref_name }}-${{ steps.settings.outputs.postgres-version }}-${{ matrix.arch }}
5050
type=gha,scope=${{ github.base_ref }}-${{ steps.settings.outputs.postgres-version }}-${{ matrix.arch }}
@@ -107,10 +107,6 @@ jobs:
107107
PGUSER: supabase_admin
108108
PGPASSWORD: ${{ env.POSTGRES_PASSWORD }}
109109

110-
schema:
111-
runs-on: ubuntu-latest
112-
steps:
113-
- uses: actions/checkout@v3
114110
- name: verify schema.sql is committed
115111
run: |
116112
docker compose -f migrations/docker-compose.yaml up db dbmate --abort-on-container-exit

Diff for: Dockerfile-156

+2-1
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,8 @@ STOPSIGNAL SIGINT
206206
EXPOSE 5432
207207

208208
ENV POSTGRES_HOST=/var/run/postgresql
209+
ENV POSTGRES_USER=supabase_admin
210+
ENV POSTGRES_DB=postgres
209211
RUN apt-get update && apt-get install -y --no-install-recommends \
210212
locales \
211213
&& rm -rf /var/lib/apt/lists/* && \
@@ -219,4 +221,3 @@ ENV LC_CTYPE=C.UTF-8
219221
ENV LC_COLLATE=C.UTF-8
220222
ENV LOCALE_ARCHIVE /usr/lib/locale/locale-archive
221223
CMD ["postgres", "-D", "/etc/postgresql"]
222-

0 commit comments

Comments
 (0)