forked from ledermann/docker-rails
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
26 lines (23 loc) · 743 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
variables:
POSTGRES_PASSWORD: duubidoo
SECRET_KEY_BASE: "we-dont-need-a-secret-here"
DB_USER: "postgres"
DB_PASSWORD: "duubidoo"
APP_ADMIN_EMAIL: "[email protected]"
APP_ADMIN_PASSWORD: "secret"
APP_EMAIL: "[email protected]"
APP_HOST: "example.org"
AWS_ACCESS_KEY_ID: "my-access-key"
AWS_SECRET_ACCESS_KEY: "my-secret"
AWS_BUCKET: "my-bucket"
AWS_REGION: "eu-central-1"
test:
before_script:
- docker-compose pull
- docker-compose build
script:
- docker-compose run --rm test bash -c "./docker/wait-for-services.sh && bundle exec rake db:create spec"
after_script:
- docker-compose run --rm test rm -rf tmp/
- docker-compose down
- docker volume rm `docker volume ls -qf dangling=true`