Add the CI/CD configuration.
This commit is contained in:
+52
@@ -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
|
||||||
|
|
||||||
@@ -40,4 +40,6 @@
|
|||||||
Refactor the Links module.
|
Refactor the Links module.
|
||||||
** 0.4.9 <2023-08-02 Wed>
|
** 0.4.9 <2023-08-02 Wed>
|
||||||
Add tests for the Links module.
|
Add tests for the Links module.
|
||||||
|
** 0.4.10 <2023-08-03 Thu>
|
||||||
|
Add the CI/CD configuration.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user