Skip to content

feat: Add Restart Service workflow - #300

Merged
taylor-osler-sentry merged 4 commits into
mainfrom
add-restart-service-workflow
Jul 29, 2026
Merged

feat: Add Restart Service workflow#300
taylor-osler-sentry merged 4 commits into
mainfrom
add-restart-service-workflow

Conversation

@taylor-osler-sentry

Copy link
Copy Markdown
Contributor

Summary

Adds a new manually-triggered "Restart Service" GitHub Actions workflow that redeploys the currently deployed Cloud Run service revision, without rebuilding or changing any images.

How it works

  • Triggered via workflow_dispatch with an environment input (test/prod), same as Deploy.
  • No build step — versions are already pinned by image SHA in Artifact Registry.
  • For each Cloud Run service (matching the same service matrices as deploy.yml):
    1. Authenticates via the same Workload Identity Federation setup as Deploy.
    2. Exports the currently deployed service definition with gcloud run services describe --format export.
    3. Re-applies that exact definition via google-github-actions/deploy-cloudrun (metadata input), forcing a new revision with identical config — effectively a restart.

Using the exported YAML avoids hardcoding multi-container flags (e.g. for firetower/firetower-test with the nginx sidecar), since the full existing spec is captured automatically.

@taylor-osler-sentry
taylor-osler-sentry requested a review from a team as a code owner July 28, 2026 22:49
Comment thread .github/workflows/restart-service.yml Outdated
Comment thread .github/workflows/restart-service.yml Outdated
Comment thread .github/workflows/restart-service.yml
Comment thread .github/workflows/restart-service.yml Outdated
Comment thread .github/workflows/restart-service.yml
Comment thread .github/workflows/restart-service.yml

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 43a7c32. Configure here.

Comment thread .github/workflows/restart-service.yml

@spalmurray spalmurray left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You could probably deduplicate the shared code between prod and test, but looks good otherwise!

@linear-code

linear-code Bot commented Jul 28, 2026

Copy link
Copy Markdown

RELENG-945

@taylor-osler-sentry
taylor-osler-sentry merged commit a359cf7 into main Jul 29, 2026
25 checks passed
@taylor-osler-sentry
taylor-osler-sentry deleted the add-restart-service-workflow branch July 29, 2026 22:22
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.

2 participants