-
Notifications
You must be signed in to change notification settings - Fork 0
ci: move static build and backend deploy jobs to self-hosted-k8s #26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -64,7 +64,8 @@ env: | |
|
|
||
| jobs: | ||
| preview-policy: | ||
| runs-on: ubuntu-latest | ||
| # Shell-only policy evaluation; runs in the ARC runner pod itself. | ||
| runs-on: self-hosted-k8s | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P1: Moving preview-policy, build-preview, and build-production to self-hosted-k8s breaks the enforced boundary test .github/tests/deploy-static-job-boundaries.test.rb, and it runs in validate-static-deploy.yaml on every PR touching this workflow. Lines 17, 40 and 153 abort unless runs-on == "ubuntu-latest", and lines 41/154 abort if the job defines a container. CI will fail on this PR. Update the test assertions (and drop the now-invalid "must not use a self-hosted container" checks) in the same change. Prompt for AI agentsThere was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P1: Custom agent: Flag Security Vulnerabilities This moves a secret-bearing PR build from an isolated GitHub-hosted VM into the cluster runner. The checkout, dependency lifecycle scripts, and Prompt for AI agentsThere was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P2: preview-policy's only step calls Prompt for AI agents |
||
| permissions: | ||
| contents: read | ||
| outputs: | ||
|
|
@@ -132,7 +133,11 @@ jobs: | |
| build-preview: | ||
| needs: preview-policy | ||
| if: needs.preview-policy.outputs.trusted == 'true' | ||
| runs-on: ubuntu-latest | ||
| runs-on: self-hosted-k8s | ||
| # ci-runner ships node 22, pnpm (corepack), make and ruby (the manifest | ||
| # validator below is a Ruby heredoc). Same digest as the deploy jobs. | ||
| container: | ||
| image: europe-north1-docker.pkg.dev/festive-terrain-478011-h0/beveriq/ci-runner@sha256:8c907c4a13a14ec89617bfadb60a090abc358f91d9b888552ce91205be35a52a | ||
| permissions: | ||
| contents: read | ||
| pull-requests: read | ||
|
|
@@ -535,7 +540,11 @@ jobs: | |
| github.event_name == 'push' && | ||
| github.ref == 'refs/heads/main' && | ||
| needs.preview-policy.outputs.toolchain_allowed == 'true' | ||
| runs-on: ubuntu-latest | ||
| runs-on: self-hosted-k8s | ||
| # ci-runner ships node 22, pnpm (corepack), make and ruby (the manifest | ||
| # validator below is a Ruby heredoc). Same digest as the deploy jobs. | ||
| container: | ||
| image: europe-north1-docker.pkg.dev/festive-terrain-478011-h0/beveriq/ci-runner@sha256:8c907c4a13a14ec89617bfadb60a090abc358f91d9b888552ce91205be35a52a | ||
| permissions: | ||
| contents: read | ||
|
|
||
|
|
@@ -645,7 +654,7 @@ jobs: | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | ||
| runs-on: self-hosted-k8s | ||
| container: | ||
| image: europe-north1-docker.pkg.dev/festive-terrain-478011-h0/beveriq/ci-runner@sha256:e57fadf58eb4e125a101f366a9cd97cb022e3cb8a9eae6028cefdfb0003b2960 | ||
| image: europe-north1-docker.pkg.dev/festive-terrain-478011-h0/beveriq/ci-runner@sha256:8c907c4a13a14ec89617bfadb60a090abc358f91d9b888552ce91205be35a52a | ||
| permissions: | ||
| contents: read | ||
| id-token: write | ||
|
|
@@ -707,7 +716,7 @@ jobs: | |
| if: needs.preview-policy.outputs.trusted == 'true' | ||
| runs-on: self-hosted-k8s | ||
| container: | ||
| image: europe-north1-docker.pkg.dev/festive-terrain-478011-h0/beveriq/ci-runner@sha256:e57fadf58eb4e125a101f366a9cd97cb022e3cb8a9eae6028cefdfb0003b2960 | ||
| image: europe-north1-docker.pkg.dev/festive-terrain-478011-h0/beveriq/ci-runner@sha256:8c907c4a13a14ec89617bfadb60a090abc358f91d9b888552ce91205be35a52a | ||
| permissions: | ||
| contents: read | ||
| id-token: write | ||
|
|
@@ -825,7 +834,7 @@ jobs: | |
| github.event.pull_request.head.repo.full_name == github.repository | ||
| runs-on: self-hosted-k8s | ||
| container: | ||
| image: europe-north1-docker.pkg.dev/festive-terrain-478011-h0/beveriq/ci-runner@sha256:e57fadf58eb4e125a101f366a9cd97cb022e3cb8a9eae6028cefdfb0003b2960 | ||
| image: europe-north1-docker.pkg.dev/festive-terrain-478011-h0/beveriq/ci-runner@sha256:8c907c4a13a14ec89617bfadb60a090abc358f91d9b888552ce91205be35a52a | ||
| permissions: | ||
| contents: read | ||
| id-token: write | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P1: This deploy job now runs with
ARGO_API_KEY, butci-runner:latestcan change between runs or matrix jobs without a workflow review. Pin the approved image digest, as the static workflow does.Prompt for AI agents