Commit 86bde927 authored by Marius Kriegerowski's avatar Marius Kriegerowski
Browse files

Added gitlab-ci.yml

parent 3079fe89
Pipeline #27100 passed with stage
in 53 seconds
image: python:3-buster
test:
before_script:
- apt-get update -y -qq
- apt-get install postgresql -y -qq
services:
- name: $CI_REGISTRY/dynamicexposure/server-components/containers/docker-obm-database:master
alias: postgres
variables:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "9doij23408usf"
PGPASSWORD: "$POSTGRES_PASSWORD"
interruptible: true
script:
- |
for file in `ls migrations/*`
do
echo "importing $file"
psql -v ON_ERROR_STOP=1 -h postgres -U postgres -f $file
done
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment