Files
KKlochko 045faf59a4
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
Update the CI/CD configuration to build the image.
2025-05-27 21:44:40 +03:00

52 lines
984 B
YAML

kind: pipeline
type: docker
name: default
environment:
DATABASE_HOSTNAME: postgres
steps:
- name: install dependencies
image: elixir:1.16.3
volumes:
- name: mix
path: /root/.mix
commands:
- mix local.hex --force
- mix local.rebar --force
- mix deps.get
- name: run tests
image: elixir:1.16.3
volumes:
- name: mix
path: /root/.mix
commands:
- mix test
- name: build the image
image: plugins/kaniko
settings:
username: kklochko
password:
from_secret: REGISTRY_PASSWORD
repo: git.kklochko.space/kklochko/decentralised_book_index
registry: git.kklochko.space
tags:
- latest
- ${DRONE_TAG}
when:
event: tag
volumes:
- name: mix
temp: {}
services:
- name: postgres
image: postgres:15-alpine
environment:
POSTGRES_DB: decentralised_book_index_dev
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres