Commit 6190abd2 authored by Cecilia Nievas's avatar Cecilia Nievas
Browse files

Added yml for CI pipeline

parent bede0c90
image: debian:bullseye-slim
before_script:
- apt update -y
- apt install -y git make shellcheck golang-go postgresql -y -qq
- export GOPATH="$HOME/go"
- export PATH="$PATH:$GOPATH/bin"
- go get -u github.com/mvdan/sh/cmd/shfmt
linters:
script:
- make check
test:
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