Skip to content

Commit 4131dc7

Browse files
committed
feat: change bootstrap user to supabase_admin upon upgrade
1 parent 86687f8 commit 4131dc7

File tree

16 files changed

+462
-37
lines changed

16 files changed

+462
-37
lines changed

.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

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)