Remove self-hosted runners from CI/CD workflows

- Replace all self-hosted runners with ubuntu-latest
- Docker builds now only run on main branch or version tags, not on PRs
- Reduces stress on self-hosted infrastructure

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Jonathan Flatt
2025-05-26 00:21:18 +00:00
parent 64676d125f
commit d9b882846f
3 changed files with 12 additions and 14 deletions

View File

@@ -183,9 +183,9 @@ jobs:
# Docker builds - only when relevant files change
docker:
name: Docker Build & Test
runs-on: [self-hosted, Linux, X64]
# Security: Only run on self-hosted for trusted sources
if: (github.event.pull_request.head.repo.owner.login == 'intelligence-assist' || github.event_name != 'pull_request') && (needs.changes.outputs.docker == 'true' || needs.changes.outputs.src == 'true')
runs-on: ubuntu-latest
# Only run on main branch or version tags, not on PRs
if: (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')) && github.event_name != 'pull_request' && (needs.changes.outputs.docker == 'true' || needs.changes.outputs.src == 'true')
# Only need unit tests to pass for Docker builds
needs: [test-unit, lint, changes]

View File

@@ -75,9 +75,9 @@ jobs:
build:
name: Build Docker Image
runs-on: [self-hosted, Linux, X64]
# Security: Only run on self-hosted for trusted sources AND when files changed
if: (github.event.pull_request.head.repo.owner.login == 'intelligence-assist' || github.event_name != 'pull_request') && (needs.changes.outputs.docker == 'true' || needs.changes.outputs.src == 'true')
runs-on: ubuntu-latest
# Only build when files changed
if: needs.changes.outputs.docker == 'true' || needs.changes.outputs.src == 'true'
needs: [test, changes]
outputs:
@@ -164,7 +164,7 @@ jobs:
name: Deploy to Staging
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
needs: [build, security-scan]
runs-on: [self-hosted, Linux, X64]
runs-on: ubuntu-latest
environment: staging
steps:
@@ -217,7 +217,7 @@ jobs:
name: Deploy to Production
if: startsWith(github.ref, 'refs/tags/v')
needs: [build, security-scan]
runs-on: [self-hosted, Linux, X64]
runs-on: ubuntu-latest
environment:
name: production
url: https://webhook.yourdomain.com

View File

@@ -33,9 +33,7 @@ env:
jobs:
build:
runs-on: [self-hosted, Linux, X64]
# Security: Only run on self-hosted for trusted sources
if: github.event.pull_request.head.repo.owner.login == 'intelligence-assist' || github.event_name != 'pull_request'
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
@@ -100,9 +98,9 @@ jobs:
# Additional job to build and push the Claude Code container
build-claudecode:
runs-on: [self-hosted, Linux, X64]
# Security: Only run on self-hosted for trusted sources + not on PRs
if: (github.event.pull_request.head.repo.owner.login == 'intelligence-assist' || github.event_name != 'pull_request') && github.event_name != 'pull_request'
runs-on: ubuntu-latest
# Only run when not a pull request
if: github.event_name != 'pull_request'
permissions:
contents: read
packages: write