auth-api/.drone.yml

61 lines
1.1 KiB
YAML
Raw Normal View History

2022-02-13 21:19:47 +01:00
kind: pipeline
type: docker
2022-02-15 19:25:44 +01:00
name: Tests
2022-02-13 21:19:47 +01:00
steps:
2022-02-13 21:25:31 +01:00
- name: Tests
image: docker/compose:1.29.2
2022-02-13 21:19:47 +01:00
commands:
- docker-compose build
- docker-compose --profile tests build
- docker-compose run --rm db-migrations
- docker-compose up -d
- docker-compose run --rm tests
2022-02-13 23:54:36 +01:00
volumes:
- name: docker-sock
path: /var/run/docker.sock
volumes:
- name: docker-sock
host:
2022-02-15 19:24:22 +01:00
path: /var/run/docker.sock
trigger:
event:
exclude:
- tag
---
kind: pipeline
type: docker
2022-02-15 19:25:44 +01:00
name: Deploy
2022-02-15 19:24:22 +01:00
steps:
- name: Tests
image: docker/compose:1.29.2
commands:
- docker-compose build
- docker-compose --profile tests build
- docker-compose run --rm db-migrations
- docker-compose up -d
- docker-compose run --rm tests
volumes:
- name: docker-sock
path: /var/run/docker.sock
- name: Build db migration
image: docker/compose:1.29.2
environment:
DOCKERHUB_TOKEN:
from_secret: dockerhub
commands:
#- docker build -t auth-api-db-migrate:
- env
volumes:
- name: docker-sock
host:
path: /var/run/docker.sock
trigger:
event:
- tag