Upgrade database and erlang runtime running on drone #74
18
.drone.yml
18
.drone.yml
@ -9,7 +9,7 @@ trigger:
|
||||
|
||||
steps:
|
||||
- name: database healthcheck
|
||||
image: &postgres 'postgres:16.0-alpine'
|
||||
image: &postgres 'postgres:16.3-alpine'
|
||||
environment:
|
||||
PGUSER: postgres
|
||||
PGPASSWORD: postgres
|
||||
@ -37,12 +37,12 @@ steps:
|
||||
restore: true
|
||||
|
||||
- name: test
|
||||
image: &elixir 'hexpm/elixir:1.16.2-erlang-26.2.3-debian-bookworm-20240130-slim'
|
||||
image: 'hexpm/elixir:1.16.2-erlang-26.2.5-debian-bookworm-20240513-slim'
|
||||
environment:
|
||||
MIX_ENV: test
|
||||
POSTGRES_HOST: db
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASS: postgres
|
||||
POSTGRES_HOST: &db_host db
|
||||
POSTGRES_USER: &db_user postgres
|
||||
POSTGRES_PASS: &db_pass postgres
|
||||
commands:
|
||||
- mix do local.rebar --force, local.hex --force, deps.get, deps.compile
|
||||
- mix compile
|
||||
@ -69,11 +69,11 @@ steps:
|
||||
region: us-east-1
|
||||
|
||||
services:
|
||||
- name: db
|
||||
- name: *db_host
|
||||
image: *postgres
|
||||
environment:
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: postgres
|
||||
POSTGRES_USER: *db_user
|
||||
POSTGRES_PASSWORD: *db_pass
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
@ -105,7 +105,7 @@ steps:
|
||||
restore: true
|
||||
|
||||
- name: compile app
|
||||
image: &elixir 'elixir:1.15.7-slim'
|
||||
image: &elixir 'hexpm/elixir:1.16.2-erlang-26.2.5-debian-bookworm-20240513-slim'
|
||||
commands:
|
||||
- mix do local.rebar --force, local.hex --force, deps.get, deps.compile
|
||||
- mix compile --all-warnings --warnings-as-errors
|
||||
|
Loading…
x
Reference in New Issue
Block a user