apparently signald image must be run from /

This commit is contained in:
finn 2022-05-17 17:13:51 -07:00
parent 74a1fafd46
commit fe5382d6bf

View file

@ -28,11 +28,12 @@ test sqlite to postgres:
needs: needs:
- "build:x86" - "build:x86"
before_script: before_script:
- sudo apt-get update && sudo apt-get install -y postgresql-client-common - apt-get update && apt-get install -y postgresql-client-common
script: script:
- cd /
- signald --migrate-data - signald --migrate-data
- echo 'CREATE DATABASE signald' | psql -h postgres -U postgres -a - echo 'CREATE DATABASE signald' | psql -h postgres -U postgres -a
- ./signaldctl db-move postgresql://postgres@postgres/signald - "${CI_PROJECT_DIR}/signaldctl db-move postgresql://postgres@postgres/signald"
- SIGNALD_DATABASE_URI=postgresql://postgres@postgres/signald signald --migrate-data - SIGNALD_DATABASE_URI=postgresql://postgres@postgres/signald signald --migrate-data
services: services:
- postgres:latest - postgres:latest