fix pipeline db
@@ -17,9 +17,9 @@ jobs:
steps:
- script: |
- psql -c 'DROP DATABASE IF EXISTS pipeline;' -U postgres
- psql -c 'DROP DATABASE IF EXISTS test_pipeline;' -U postgres
- psql -c 'CREATE DATABASE pipeline;' -U postgres
+ sudo -u postgres psql -c 'DROP DATABASE IF EXISTS pipeline'
+ sudo -u postgres psql -c 'DROP DATABASE IF EXISTS test_pipeline'
+ sudo -u postgres psql -c 'CREATE DATABASE pipeline'
rm -rf /myagent/_work/1/s/api/env
cd /myagent/_work/1/s/api
