diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.yml index f17d74d6ec3..95b378b2a6e 100644 --- a/.github/workflows/release-app.yml +++ b/.github/workflows/release-app.yml @@ -179,3 +179,25 @@ jobs: # timeouts appropriately configured and will all fail before 30 # minutes is reached. On the other hand, we do want to wait # so that there is a record of the successful deployment. + + - name: Deploy production thumbnails + if: inputs.app == 'api' + uses: felixp8/dispatch-and-wait@v0.1.0 + with: + owner: WordPress + repo: openverse-infrastructure + token: ${{ secrets.ACCESS_TOKEN }} + event_type: deploy_production_api_thumbnails + client_payload: | + { + "actor": "${{ github.actor }}", + "tag": "${{ steps.tag.outputs.image-tag }}" + } + wait_time: 60 # check every minute + max_time: 1800 # allow up to 30 minutes for a deployment + # max_time can't easily be configured per application + # without duplicating information between our infrastructure + # and this workflow. The upstream workflows already have + # timeouts appropriately configured and will all fail before 30 + # minutes is reached. On the other hand, we do want to wait + # so that there is a record of the successful deployment.