parent
ebac60a2b0
commit
e3b202825b
@ -0,0 +1,52 @@
|
|||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: default
|
||||||
|
|
||||||
|
environment:
|
||||||
|
DATABASE_NAME: link_shortener_dev
|
||||||
|
DATABASE_USERNAME: postgres
|
||||||
|
DATABASE_PASSWORD: postgres
|
||||||
|
DATABASE_HOST: postgres
|
||||||
|
DATABASE_PORT: 5432
|
||||||
|
SECRET_KEY_BASE: TestSecretKeycRZ1H45gfdAsdf8DIb45df4664mRCruzwVEF68wosddfg324ost
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: install dependencies
|
||||||
|
image: elixir:1.14.0-slim
|
||||||
|
volumes:
|
||||||
|
- name: mix
|
||||||
|
path: /root/.mix
|
||||||
|
commands:
|
||||||
|
- mix local.hex --force
|
||||||
|
- mix local.rebar --force
|
||||||
|
- mix deps.get
|
||||||
|
- mix compile
|
||||||
|
|
||||||
|
- name: run migrations
|
||||||
|
image: elixir:1.14.0-slim
|
||||||
|
volumes:
|
||||||
|
- name: mix
|
||||||
|
path: /root/.mix
|
||||||
|
commands:
|
||||||
|
- mix ecto.setup
|
||||||
|
|
||||||
|
- name: run tests
|
||||||
|
image: elixir:1.14.0-slim
|
||||||
|
volumes:
|
||||||
|
- name: mix
|
||||||
|
path: /root/.mix
|
||||||
|
commands:
|
||||||
|
- mix test
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: mix
|
||||||
|
temp: {}
|
||||||
|
|
||||||
|
services:
|
||||||
|
- name: postgres
|
||||||
|
image: postgres:15-alpine
|
||||||
|
environment:
|
||||||
|
POSTGRES_DB: link_shortener_dev
|
||||||
|
POSTGRES_USER: postgres
|
||||||
|
POSTGRES_PASSWORD: postgres
|
||||||
|
|
Loading…
Reference in new issue