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.
52 lines
984 B
52 lines
984 B
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
|