[ci] overhaul external dependency installation
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
b786c6c225
commit
0b7aad4efa
26
.drone.yml
26
.drone.yml
|
@ -6,17 +6,15 @@ trigger:
|
|||
- develop
|
||||
|
||||
steps:
|
||||
- name: "install external dependencies"
|
||||
image: ubuntu
|
||||
- name: "setup postgres"
|
||||
image: postgres:10.14-alpine
|
||||
pull: if-not-exists
|
||||
commands:
|
||||
- ln -fs /usr/share/zoneinfo/America/Chicago /etc/localtime
|
||||
- dpkg-reconfigure debconf --frontend=noninteractive
|
||||
- apt-get -qq update && apt-get -yq -o=Dpkg::Use-Pty=0 install redis-server postgresql --no-install-recommends
|
||||
- pg_ctlcluster 12 main start
|
||||
- sleep 15
|
||||
- su - postgres
|
||||
- psql -c "CREATE USER klip WITH PASSWORD 'klip' SUPERUSER;"
|
||||
- psql -U postgres -c "CREATE USER klip WITH PASSWORD 'klip' SUPERUSER;"
|
||||
|
||||
- name: "setup redis"
|
||||
image: redis
|
||||
pull: if-not-exists
|
||||
|
||||
- name: "configure .env"
|
||||
image: ubuntu
|
||||
|
@ -25,6 +23,7 @@ steps:
|
|||
- cp .example.env .env
|
||||
- sed -i "/DB_USER=/c\DB_USER=klip" .env
|
||||
- sed -i "/DB_PASSWORD=/c\DB_PASSWORD=klip" .env
|
||||
- sed -i "/REDIS_HOST="127.0.0.1"/c\REDIS_HOST="redis" .env
|
||||
|
||||
- name: "install node dependencies"
|
||||
image: node
|
||||
|
@ -37,3 +36,12 @@ steps:
|
|||
pull: if-not-exists
|
||||
commands:
|
||||
- npm run build
|
||||
|
||||
services:
|
||||
- name: database
|
||||
image: postgres:10.14-alpine
|
||||
environment:
|
||||
POSTGRES_USER: postgres
|
||||
|
||||
- name: redis
|
||||
image: redis
|
||||
|
|
Loading…
Reference in New Issue