Bug report
Describe the bug
The day before yesterday I started receiving the following error on my CI pipeline that had been working correctly for months:
Run supabase link --project-ref $SUPABASE_PROJECT_ID
failed to connect to postgres: failed to connect to `host=db.<redacted>.supabase.co user=postgres database=postgres`: dial error (dial tcp [<redacted ip6 address>]:5432 connect: network is unreachable)
Try rerunning the command with --debug to troubleshoot the error.
After some investigation it was determined that the version of the CLI being installed by supabase/setup-cli by default is v1.136.3.
This version no longer works in GitHub actions.
To Reproduce
Create a CI pipeline that looks like this:
name: CI/CD Workflow
on:
push:
branches:
- main
env:
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}
SUPABASE_DB_PASSWORD: ${{ secrets.SUPABASE_DB_PASSWORD }}
SUPABASE_PROJECT_ID: ${{ vars.SUPABASE_PROJECT_ID}}
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: supabase/setup-cli@v1
- run: supabase --version
- run: supabase link --project-ref $SUPABASE_PROJECT_ID
- run: supabase db push
- run: supabase functions deploy
Expected behavior
The command supabase link does not fail by default.
Screenshots
System information
ubuntu-latest per the yaml file
Additional context
This is fixed by specifying a more recent CLI version:
- uses: supabase/setup-cli@v1
with:
version: latest
Bug report
Describe the bug
The day before yesterday I started receiving the following error on my CI pipeline that had been working correctly for months:
After some investigation it was determined that the version of the CLI being installed by supabase/setup-cli by default is v1.136.3.
This version no longer works in GitHub actions.
To Reproduce
Create a CI pipeline that looks like this:
Expected behavior
The command
supabase linkdoes not fail by default.Screenshots
System information
ubuntu-latestper the yaml fileAdditional context
This is fixed by specifying a more recent CLI version: