Skip to content

Commit f841136

Browse files
emmaling27Convex, Inc.
authored and
Convex, Inc.
committed
Trigger self-hosted builds when migrations.rs changes (#34657)
This will automate docker image releases when db migrations are added, which will help folks upgrade docker image version safely. GitOrigin-RevId: f1c46a3ec28f4c91af487cec2fc03dbc0468ab0a
1 parent fc167de commit f841136

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/release_self_hosted_images.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,18 @@ on:
88
type: boolean
99
default: false
1010
required: true
11+
push:
12+
branches:
13+
- main
14+
paths:
15+
- "crates/model/src/migrations.rs"
1116

1217
jobs:
1318
release_backend:
1419
uses: ./.github/workflows/release_local_backend.yml
1520
with:
16-
tag_latest: ${{ inputs.tag_latest }}
21+
# Do not tag docker images triggered by migrations as latest.
22+
tag_latest: ${{ github.event_name == 'workflow_dispatch' && inputs.tag_latest || false }}
1723
permissions:
1824
contents: read
1925
packages: write
@@ -22,7 +28,8 @@ jobs:
2228
release_dashboard:
2329
uses: ./.github/workflows/release_local_dashboard.yml
2430
with:
25-
tag_latest: ${{ inputs.tag_latest }}
31+
# Do not tag docker images triggered by migrations as latest.
32+
tag_latest: ${{ github.event_name == 'workflow_dispatch' && inputs.tag_latest || false }}
2633
permissions:
2734
contents: read
2835
packages: write

0 commit comments

Comments
 (0)