Browse Source

[ci] correct sed syntax

develop
Joe 5 months ago
parent
commit
48460bad2b
Signed by: joe GPG Key ID: 8595A3F8F2CE1B74
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      .drone.yml

+ 4
- 4
.drone.yml View File

@ -27,10 +27,10 @@ steps:
pull: if-not-exists
commands:
- cp .example.env .env
- sed -i "/DB_HOST="127.0.0.1"/c\DB_HOST="postgres" .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
- sed -i 's/DB_HOST="127.0.0.1"/DB_HOST="postgres"/g' .env
- sed -i 's/DB_USER=/DB_USER=klip/g' .env
- sed -i 's/DB_PASSWORD=/DB_PASSWORD=klip/g' .env
- sed -i 's/REDIS_HOST="127.0.0.1"/REDIS_HOST="redis"/g' .env
- name: "install node dependencies"
image: node


Loading…
Cancel
Save