Skip to content

Commit f72062d

Browse files
committed
feat: Added DB_NAME as variable
1 parent 702e50a commit f72062d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/cd-base.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,12 @@ jobs:
7676
set -e
7777
for file in $(ls src/db/scripts/*.sql | sort -V); do
7878
echo "> Executing: $file"
79-
psql -h ${{ steps.db.outputs.public_ip }} -U ${{ secrets.DB_USER }} -d ${{ secrets.DB_NAME }} -f "$file" -v ON_ERROR_STOP=1
79+
psql -h ${{ steps.db.outputs.public_ip }} \
80+
-U ${{ secrets.DB_USER }} \
81+
-d ${{ secrets.DB_NAME }} \
82+
-f "$file" \
83+
-v DB_NAME=${{ secrets.DB_NAME }} \
84+
-v ON_ERROR_STOP=1
8085
done
8186
8287
- name: Skipped table creation (existent tickets table)

0 commit comments

Comments
 (0)