Commit e2849c8
chore(ci): stop building Docker images on every branch push (#981)
## Goal
Cut GitHub Actions spend. This repo's Actions cost is dominated by
`build.yml`.
## Changes
**`build.yml` — the big one.** It previously ran on `push: branches:
["**"]` — a full **amd64 + arm64 multi-arch build + push + GitHub
Release on every push to every branch**. Branch-sha images aren't
consumed by any deploy (`latest` is only tagged on main). Now:
- builds only on `push: main`
- `workflow_dispatch` retained so anyone can build a branch image on
demand
- `cancel-in-progress` concurrency so a newer main push supersedes an
in-flight build
**`test.yml`** — dropped the redundant `push: main` trigger (those
commits were already tested on the PR) and added `cancel-in-progress`
concurrency. Tests still gate every PR into main.
## Estimated savings
Eliminates multi-arch Docker builds on all feature-branch pushes — the
majority of this repo's ~$14/mo. Rough estimate **~60–70% of api Actions
spend (~$8–10/mo)**.
## 1 parent e36b83c commit e2849c8
2 files changed
Lines changed: 20 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
4 | 9 | | |
5 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
6 | 17 | | |
7 | 18 | | |
8 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
8 | 14 | | |
9 | 15 | | |
10 | 16 | | |
| |||
0 commit comments