ODNZSL / nzsl-dictionary-scripts

Scripts needed to support the NZSL mobile applications
MIT License
3 stars 2 forks source link

NZSL-157: Update the Signbank database extraction task to automatically restart Heroku apps after a release is performed #25

Closed joshmcarthur closed 7 months ago

joshmcarthur commented 8 months ago

This pull request adds an additional step to the database extraction task so that Heroku apps are automatically restarted following a database extraction. The apps to restart are determined by values in secrets, which are further determined by environment. For example, when the environment is 'prerelease', the staging and UAT apps will be restarted. When the environment is 'production', the production apps will be restarted.

Each of the apps being restarted either has, or will have a process to download the latest dictionary database (which has just been published by this workflow) upon starting.

joshmcarthur commented 8 months ago

@jadedarko that's a fair comment. We have to be a bit careful exactly how descriptive we're being in a public repo, but I've provided some broad updates to the README (which needed updating to cover Signbank anyway) in https://github.com/ODNZSL/nzsl-dictionary-scripts/pull/26

joshmcarthur commented 8 months ago

I've updated the repo secrets for both Prerelease and Production, so these restarts will work once this PR is merged.

joshmcarthur commented 8 months ago

Also in https://github.com/ODNZSL/nzsl-dictionary-scripts/actions I manually ran the workflow to confirm that the restart does actually work.