From fe5382d6bfa342ea35c1f5f351e0e071ef64dcbf Mon Sep 17 00:00:00 2001 From: finn Date: Tue, 17 May 2022 17:13:51 -0700 Subject: [PATCH] apparently signald image must be run from / --- .gitlab-ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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