Translated using Weblate (French (France))
[oweals/peertube.git] / .gitlab-ci.yml
index 0305171c7992525cbb36a126824cbde68436c9c8..7f142e1299478fcba8952cfe5099e5f03ac68b06 100644 (file)
@@ -122,6 +122,7 @@ build-nightly:
     name: gcr.io/kaniko-project/executor:debug
     entrypoint: [""]
   before_script:
+    - mkdir -p /kaniko/.docker
     - echo "{\"auths\":{\"$CI_REGISTRY\":{\"auth\":\"$CI_REGISTRY_AUTH\",\"email\":\"$CI_REGISTRY_EMAIL\"}}}" > /kaniko/.docker/config.json
   script:
     - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/support/docker/production/Dockerfile.buster --destination $DOCKER_IMAGE_NAME
@@ -159,8 +160,9 @@ test-external-plugins:
     - name: rroemhild/test-openldap
       alias: ldap
   variables:
-    PGHOST: postgres
-    PGUSER: postgres
+    POSTGRES_USER: peertube
+    POSTGRES_PASSWORD: "peertube"
+    POSTGRES_HOST_AUTH_METHOD: trust
     REDIS_HOST: redis
   artifacts:
    expire_in: 1 day
@@ -170,7 +172,6 @@ test-external-plugins:
   before_script:
     - 'sed -i -z "s/database:\n  hostname: ''localhost''/database:\n  hostname: ''postgres''/" config/test.yaml'
     - 'sed -i -z "s/redis:\n  hostname: ''localhost''/redis:\n  hostname: ''redis''/" config/test.yaml'
-    - psql -c "create user peertube with password 'peertube';"; fi
     - NOCLIENT=1 yarn install --pure-lockfile --cache-folder .yarn-cache
   script:
-    - npm run ci -- "external-plugins"
\ No newline at end of file
+    - npm run ci -- "external-plugins"