Skip to content

Commit

Permalink
Use loop to wait until postgresql ready.
Browse files Browse the repository at this point in the history
  • Loading branch information
laceysanderson committed Aug 20, 2024
1 parent 94adf4c commit 2d9a961
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ runs:
run: |
docker run --publish=80:80 --name=tripaldocker -tid \
--volume=`pwd`:/var/www/drupal/web/modules/contrib/${{ inputs.directory-name }} testing:localdocker
docker exec tripaldocker pg_isready --dbname=sitedb --username=docker --timeout=25
docker exec tripaldocker bash -c "until pg_isready --dbname=sitedb --username=drupaladmin --host=localhost; do sleep 1; done"
# Install the modules
- name: Install our package in Docker
if: "${{ inputs.modules != '' }}"
Expand Down

0 comments on commit 2d9a961

Please sign in to comment.