Repository navigation
63 lines (57 loc) · 1.84 KB
/
Copy pathdeploy-dev.yml
File metadata and controls
63 lines (57 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Deploy dev
# Auto-deploys on every push to dev that touches the ai image's inputs --
# packages/, services/, deploy/Dockerfile.ai, this workflow file, or
# build-deploy.yml.
# The workspace services (harness, data-mcp, analysis-mcp,
# presentation-mcp) build and deploy as one Cloud Run service.
#
# The build and deploy steps live in build-deploy.yml, which deploy-prod.yml
# runs too. They only swap the image on a Cloud Run service that already
# exists. infra owns creating/configuring the service itself; see
# deploy/README.md for the full division of responsibility and the
# vars/secrets this workflow needs.
#
# Staging is not wired up yet (the staging GCP project doesn't exist). Once
# infra provisions it, add "staging" to the `matrix.environment` list
# below and create the matching GitHub Environment with its own vars/secrets
# -- everything else in this file is written to be reused as-is.
#
# Prod deploys through deploy-prod.yml.
on:
push:
branches: [dev]
workflow_dispatch: {}
concurrency:
group: deploy-dev-${{ github.ref }}
cancel-in-progress: false
jobs:
changes:
runs-on: ubuntu-latest
outputs:
ai: ${{ steps.filter.outputs.ai }}
steps:
- uses: actions/checkout@v6
- uses: dorny/paths-filter@v4
id: filter
with:
filters: |
ai:
- 'packages/**'
- 'services/**'
- 'deploy/Dockerfile.ai'
- '.github/workflows/deploy-dev.yml'
- '.github/workflows/build-deploy.yml'
deploy:
needs: changes
if: needs.changes.outputs.ai == 'true'
permissions:
contents: read
id-token: write
strategy:
fail-fast: false
matrix:
environment: [dev]
uses: ./.github/workflows/build-deploy.yml
with:
environment: ${{ matrix.environment }}
secrets: inherit