chore(ci): upgrade database and erlang runtime on pipelines (#74)
All checks were successful
continuous-integration/drone/push Build is passing

The following upgrades were made:

* Bump [`postgres` from 16.0 to 16.3][postgres-release].
* Bump [`erlang`][erlang-release] from [26.2.3 to 26.2.5][erlang-diffs].

Also, use the same `elixir` image/tag on both pipelines.

[postgres-release]: https://www.postgresql.org/docs/release/16.3/
[erlang-release]: https://www.erlang.org/patches/otp-26.2.5
[erlang-diffs]: https://github.com/erlang/otp/compare/OTP-26.2.3...OTP-26.2.5

Reviewed-on: #74
Co-authored-by: Joao P Dubas <joao.dubas+gitea@gmail.com>
Co-committed-by: Joao P Dubas <joao.dubas+gitea@gmail.com>
This commit is contained in:
João Paulo Dubas 2024-05-16 19:15:12 +00:00 committed by João Paulo Dubas
parent 9aeaaabc35
commit e616d01e63

View File

@ -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