chore(ci): reuse variables
This commit is contained in:
parent
3f83808335
commit
85d0afff91
12
.drone.yml
12
.drone.yml
@ -11,9 +11,9 @@ steps:
|
|||||||
- name: database healthcheck
|
- name: database healthcheck
|
||||||
image: &postgres 'postgres:16.3-alpine'
|
image: &postgres 'postgres:16.3-alpine'
|
||||||
environment:
|
environment:
|
||||||
PGUSER: postgres
|
PGUSER: &db_user postgres
|
||||||
PGPASSWORD: postgres
|
PGPASSWORD: &db_pass postgres
|
||||||
PGHOST: db
|
PGHOST: &db_host db
|
||||||
commands:
|
commands:
|
||||||
- while ! pg_isready; do sleep 1; done
|
- while ! pg_isready; do sleep 1; done
|
||||||
|
|
||||||
@ -54,9 +54,9 @@ steps:
|
|||||||
image: *elixir
|
image: *elixir
|
||||||
environment:
|
environment:
|
||||||
MIX_ENV: test
|
MIX_ENV: test
|
||||||
POSTGRES_HOST: &db_host db
|
POSTGRES_HOST: *db_host
|
||||||
POSTGRES_USER: &db_user postgres
|
POSTGRES_USER: *db_user
|
||||||
POSTGRES_PASS: &db_pass postgres
|
POSTGRES_PASS: *db_pass
|
||||||
commands:
|
commands:
|
||||||
- apt-get update
|
- apt-get update
|
||||||
- apt-get install -y git make
|
- apt-get install -y git make
|
||||||
|
Loading…
x
Reference in New Issue
Block a user