This commit is contained in:
asaki222 2025-02-06 12:36:41 -05:00
parent 9e038d1f93
commit 1bba542a55
No known key found for this signature in database
GPG key ID: C51913A3A09FDC03

View file

@ -41,7 +41,7 @@ jobs:
CF_PASSWORD: CF_${{ github.event.inputs.environment }}_PASSWORD CF_PASSWORD: CF_${{ github.event.inputs.environment }}_PASSWORD
DESTINATION_ENVIRONMENT: ${{ github.event.inputs.environment}} DESTINATION_ENVIRONMENT: ${{ github.event.inputs.environment}}
steps: steps:
- name: Dekete and Recreate Database - name: Delete and Recreate Database
env: env:
cf_username: ${{ secrets[env.CF_USERNAME] }} cf_username: ${{ secrets[env.CF_USERNAME] }}
cf_password: ${{ secrets[env.CF_PASSWORD] }} cf_password: ${{ secrets[env.CF_PASSWORD] }}
@ -70,7 +70,7 @@ jobs:
# this checks the creation cf service getgov-$DESTINATION_ENVIRONMENT-database # this checks the creation cf service getgov-$DESTINATION_ENVIRONMENT-database
# the below command with check “status” line using cf service command mentioned above. if it says “create in progress” it will keep waiting otherwise the next steps fail # the below command with check “status” line using cf service command mentioned above. if it says “create in progress” it will keep waiting otherwise the next steps fail
until cf service getgov-$DESTINATION_ENVIRONMENT-database | grep -q 'The service instance status is succeeded' timeout 30 until cf service getgov-$DESTINATION_ENVIRONMENT-database | grep -q 'The service instance status is succeeded'
do do
echo "Database not up yet, waiting..." echo "Database not up yet, waiting..."
sleep 30 sleep 30