Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Add thumbnails production deployment (#2493)

sarayourfriend92f32b66ea95
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.yml
index f17d74d6e..95b378b2a 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/[email protected]
+ 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.