You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1011 B
53 lines
1011 B
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
|
|
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
|
|
volumes:
|
|
- name: mix
|
|
path: /root/.mix
|
|
commands:
|
|
- mix ecto.setup
|
|
|
|
- name: run tests
|
|
image: elixir:1.14.0
|
|
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
|
|
|