nextstrain / nextstrain.org

The Nextstrain website
https://nextstrain.org
GNU Affero General Public License v3.0
87 stars 49 forks source link

index-resources.yml: Create separate indexes for Heroku apps #830

Closed joverlee521 closed 2 months ago

joverlee521 commented 2 months ago

Description of proposed changes

We are running into out-of-sync issues between the resources index and the production site when canary is not immediately promoted.

This change creates separate indexes for the nextstrain-server and nextstrain-canary Heroku apps by checking out the commit of their latest released slug.

The separate resources JSONs are uploaded to separate paths prefixed by the app name, which required updating the permissions for GitHubActionsRoleResourceIndexer outside of this commit.

Related issue(s)

Resolves #829

Checklist

joverlee521 commented 2 months ago

There's no difference in the test run because I just promoted canary to production earlier today.

joverlee521 commented 2 months ago

Closing this PR for now since we will be going in a slightly different direction after team discussion.