Skip to content

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

Deploy staging thumbnails along with staging API (#2455)

sarayourfriendae8267e8e63c
diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml
index b0bce8094..b72ea5901 100644
--- a/.github/workflows/ci_cd.yml
+++ b/.github/workflows/ci_cd.yml
@@ -949,6 +949,22 @@ jobs:
wait_time: 60 # check every minute
max_time: 1800 # allow up to 30 minutes for a deployment
+ - name: Deploy staging thumbnails
+ uses: felixp8/[email protected]
+ with:
+ owner: WordPress
+ repo: openverse-infrastructure
+ token: ${{ secrets.ACCESS_TOKEN }}
+ event_type: deploy_staging_api_thumbnails
+ client_payload: |
+ {
+ "actor": "${{ github.actor }}",
+ "tag": "${{ needs.get-image-tag.outputs.image_tag }}",
+ "run_name": "${{ steps.commit.outputs.commit_message }}"
+ }
+ wait_time: 60 # check every minute
+ max_time: 1800 # allow up to 30 minutes for a deployment
+
################
# Notification #
################
diff --git a/documentation/meta/ci_cd/jobs/deployment.md b/documentation/meta/ci_cd/jobs/deployment.md
index a7bfe07f2..950a3dda5 100644
--- a/documentation/meta/ci_cd/jobs/deployment.md
+++ b/documentation/meta/ci_cd/jobs/deployment.md
@@ -2,8 +2,9 @@
## `deploy-api`
-Triggers a separate workflow using `workflow_dispatch` that deploys the staging
-environment of the API service to AWS ECS. That workflow is given two inputs.
+Triggers two separate workflows using `workflow_dispatch` that deploys the
+staging environment of the API service and the thumbnails-specific API
+deployment to AWS ECS. That workflows are given two inputs.
- the tag of the image that was published by the
[`publish-images`](/meta/ci_cd/jobs/docker.md#publish-images) job, which is
@@ -11,7 +12,7 @@ environment of the API service to AWS ECS. That workflow is given two inputs.
[`get-image-tag`](/meta/ci_cd/jobs/preparation.md#get-image-tag) job
- the actor of the CI + CD workflow, for tagging them in Slack messages
-This deployment is only triggered if all the following conditions are met.
+The deployments are only triggered if all the following conditions are met.
- the API codebase has changed
- the [`publish-images`](/meta/ci_cd/jobs/docker.md#publish-images) job has