Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToon Claes <toon@gitlab.com>2021-12-01 22:47:21 +0300
committerToon Claes <toon@gitlab.com>2021-12-01 22:47:21 +0300
commita191a5d10f0772ae2ed6ec869001ddde6d277827 (patch)
treedb62a56fcac12bac2034a3e847594c700dc0c47c /.gitlab-ci.yml
parent6ade7fbe35ea31dcd554397ee1adbe77b9ad070d (diff)
parent34484fdb749626f8dae9efd3dde260d0bd3163d5 (diff)
Merge branch 'pks-praefect-dump-database' into 'master'
praefect: Track database schema in Git See merge request gitlab-org/gitaly!4130
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 600341d86..b83d5bf1c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -224,6 +224,24 @@ verify:
- proto/go/gitalypb/*
when: on_failure
+dbschema:
+ <<: *cache_definition
+ stage: test
+ services:
+ # The database version we use must match the version of `pg_dump` we have
+ # available in the build image.
+ - postgres:11.13-alpine
+ variables:
+ <<: *postgres_variables
+ before_script:
+ - while ! psql -h $PGHOST -U $PGUSER -c 'SELECT 1' > /dev/null; do echo "awaiting Postgres service to be ready..." && sleep 1 ; done && echo "Postgres service is ready!"
+ script:
+ - make dump-database-schema no-changes
+ artifacts:
+ paths:
+ - _support/praefect-schema.sql
+ when: on_failure
+
gosec-sast:
before_script:
- apk add pkgconfig libgit2-dev gcc libc-dev