Skip to content

Commit 0530414

Browse files
committed
fix: fixed remote env dv host for tables cleanup
1 parent 094ee5a commit 0530414

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/cd-base.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ jobs:
174174
secrets: inherit # pragma: allowlist secret
175175

176176
cleanup-database:
177-
needs: run-integration-tests
177+
needs: [deploy, run-integration-tests]
178178
runs-on: ubuntu-latest
179179
if: always() && github.event.inputs.deployment_env != 'local' # run even if integration test fail
180180
steps:
@@ -191,7 +191,7 @@ jobs:
191191
set -e
192192
for file in $(ls src/db/scripts/cleanup/*.sql | sort -V); do
193193
echo "> Executing: $file"
194-
psql -h ${{ steps.db.outputs.public_ip }} \
194+
psql -h ${{ needs.deploy.outputs.db_host }} \
195195
-U ${{ secrets.DB_USER }} \
196196
-d ${{ secrets.DB_NAME }} \
197197
-f "$file" \

0 commit comments

Comments
 (0)