Closed tckm closed 1 month ago
I just checked that deploying functions from gitlab pipeline is working as expected https://gitlab.com/sweatybridge/setup-cli/-/blob/main/.gitlab-ci.yml?ref_type=heads
I'm guessing it's because you commented out the DOCKER_HOST
variable, so try these config below
deploy-function:
stage: deploy
script:
- npx supabase functions deploy
services:
- docker:dind
variables:
DOCKER_HOST: tcp://docker:2375
SUPABASE_PROJECT_ID: $TEST_SUPABASE_PROJECT_ID
SUPABASE_ACCESS_TOKEN: $TEST_SUPABASE_ACCESS_TOKEN
tags: # add
- build
- docker
Finally, it was discovered that the issue was with the GitLab Docker Runner configuration.
The problem was resolved by adding the /builds:/builds
parameter to the volumes
configuration.
Describe the bug
supabase functions deploy
failed via gitlab ciTo Reproduce
repo structure (part)
.gitlab-ci.yml
job log(part)
Expected behavior
use GitLab CI to automate Edge Function deployments.
System information