diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index eb80bb4..2b53dc0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -28,11 +28,12 @@ test sqlite to postgres: needs: - "build:x86" 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: + - cd / - signald --migrate-data - 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 services: - postgres:latest