Skip to content

Commit 9fdb976

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

File tree

16 files changed

+455
-34
lines changed

16 files changed

+455
-34
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 2 additions & 1 deletion
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)