Commit Graph

9 Commits

Author SHA1 Message Date
Joey Parrish c951ef7e6a chore: Update python runtime in appengine (#9224)
Python 3.9 is EOL in app engine.

This should fix future deployments by moving to Python 3.13.

v4.15.17 and v4.16.5 have been deployed manually to compensate for these failed release workflows:

- https://github.com/shaka-project/shaka-player/actions/runs/18526707807/job/52833355559
- https://github.com/shaka-project/shaka-player/actions/runs/18526952863/job/52833356575
2025-10-15 10:51:58 -07:00
Joey Parrish 3a47bd1c03 ci: Prevent leaked credentials (#8142)
Naive use of google-github-actions/auth and
google-github-actions/deploy-appengine can lead to leaked credentials.

In particular, uploading static content from the workspace root leads to
servable copies of the credentials file written by
google-github-actions/auth. This is exactly what the Shaka Player Demo
did. Making matters worse, google-github-actions/auth logs credential
filenames for all to see.

All uploaded credentials were expired before I uploaded this PR.

This fixes the leak by installing a gcloudignore file which prevents the
credentials from being uploaded.
2025-02-21 15:33:17 -08:00
dependabot[bot] aee11426de chore: bump flask from 2.0.3 to 2.2.5 in /app-engine/demo-version-index (#5472)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-17 16:17:06 -07:00
dependabot[bot] 87f91b2363 chore: bump flask from 2.0.3 to 2.2.5 in /app-engine/shaka-player-demo (#5473)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-17 16:16:35 -07:00
Joey Parrish 866ddb0c11 ci: Make version index aware of deployments (#5203)
Due to limits in the number of versions you can have deployed at once on
App Engine, we can no longer keep every version of the Shaka Player Demo
deployed. So the version index needs to be aware of which versions are
deployed, and only link to versions that are still available.

This makes the index generator aware of App Engine deployments.
2023-04-29 08:54:31 -07:00
Joey Parrish 80e7f7ba55 ci: Fix demo index deployment (#4122)
Fixes these issues with the demo index deployment (tested by manual deployment):

 - Missing `handlers:` field in app.yaml
 - Missing handler for the URL `/`
 - Missing Flask entrypoint (even though no dynamic content is generated by it)

Closes #4074
2022-04-12 11:32:14 -07:00
Joey Parrish 2eca4b2ef5 ci: Generate static content for demo index at deploy time (#4119)
Rather than runtime-querying of appengine versions within the
appengine environment, we can instead generate the index at deployment
time (from git tags) and just serve static content.  This simplifies
the system and avoids dependence on Google Cloud.

This was less feasible before we adopted GitHub Actions, but is now
relatively simple.  The index will be regenerated when the index code
is updated or when a new release is created.

Closes #4074
2022-04-12 10:10:41 -07:00
theodab fe8b9ab2c1 fix(demo): Fix default demo index versions (#4116)
The script for deploying the demo version index page has a function
that chooses which versions to display. This script has a special
mode meant for testing that shows a default list of demo versions.
This mode was only supposed to trigger when run locally, but the
check did not work properly, so the demo version index was deploying
with a very out-of-date list of versions.
This fixes that check.

Closes #4074

<!--
Please remember to:

1. Use Conventional Commits syntax (fix: ..., feat: ..., etc.) in commits and
   PR title (https://www.conventionalcommits.org/)
2. Tag any related or fixed issues ("Issue #123", "Closes #420")
3. Sign the Google CLA if you haven't (https://cla.developers.google.com)

You may delete this comment from the PR description.
-->
2022-04-11 16:46:20 -07:00
Joey Parrish 3f838cfd3a ci: Deploy demo to appspot nightly and on releases (#4038)
This imports our appspot code into the repo and updates all of it to
Python 3.
2022-03-21 11:15:40 -07:00