forked from shibao/cannery
add drone ci
This commit is contained in:
parent
9387756109
commit
b64e85f65c
28
.drone.yml
Normal file
28
.drone.yml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: lokal
|
||||||
|
|
||||||
|
cache:
|
||||||
|
mount:
|
||||||
|
- _build
|
||||||
|
- deps
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: test
|
||||||
|
image: bitwalker/alpine-elixir-phoenix:1.13
|
||||||
|
environment:
|
||||||
|
TEST_DATABASE_URL: ecto://postgres:postgres@database/lokal_test
|
||||||
|
commands:
|
||||||
|
- mix local.rebar --force
|
||||||
|
- mix local.hex --force
|
||||||
|
- mix deps.get
|
||||||
|
- npm install --prefix assets
|
||||||
|
- mix test
|
||||||
|
|
||||||
|
services:
|
||||||
|
- name: database
|
||||||
|
image: postgres:13
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: postgres
|
||||||
|
POSTGRES_PASSWORD: postgres
|
||||||
|
POSTGRES_DB: postgres
|
@ -49,3 +49,7 @@ In `prod` mode (or in the Docker container), Lokal will listen for these environ
|
|||||||
- `SECRET_KEY_BASE`: Secret key base used to sign cookies. Must be generated
|
- `SECRET_KEY_BASE`: Secret key base used to sign cookies. Must be generated
|
||||||
with `mix phx.gen.secret` and set for server to start.
|
with `mix phx.gen.secret` and set for server to start.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
[![Build
|
||||||
|
Status](https://drone.bubbletea.dev/api/badges/shibao/lokal/status.svg?ref=refs/heads/dev)](https://drone.bubbletea.dev/shibao/lokal)
|
||||||
|
Loading…
Reference in New Issue
Block a user