Skip to content

Conversation

@TyHil
Copy link
Member

@TyHil TyHil commented Aug 3, 2025

Makes a standard approach to running api-tools on GCP at some frequency, docs on how it works are here and copied below:

The deploy.yml GitHub action runs on push to develop and build an api-tools image on GCP using the Dockerfile. Then it sets the specified jobs to use this new image.

When a job runs (based on a scheduled trigger) it starts with the runners/setup.sh script which just sets up environment variables from GCP secrets. Then based on an environment variable from the runner's config it chooses another script to run, like runners/daily.sh, which specifies which api-tools commands to run.

This allows us to have one GCP job and one scripts file per running frequency.

Right now we only have a daily runner but this should make it easy to add more with varying frequency and commands.

Note: once merged I'll delete the old jobs and images. (And we'll see if the GitHub action still works)

@TyHil TyHil requested a review from mikehquan19 August 3, 2025 08:10
Copy link
Contributor

@mikehquan19 mikehquan19 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setup looks good to me. @TyHil will check again if actions still work after merging. If anything, we can go from there.

@mikehquan19 mikehquan19 merged commit 4517949 into develop Aug 3, 2025
2 checks passed
@mikehquan19 mikehquan19 deleted the standardize-runners branch August 3, 2025 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants