Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
name: Build Docker Image

on:
# Only build/push images on main. Previously this ran on every push to every
# branch ("**"), producing a full amd64 + arm64 multi-arch build, push, and
# GitHub Release for every feature-branch commit — by far the largest source
# of Actions spend in this repo. Feature-branch images are not consumed by any
# deploy; use the manual trigger below to build one on demand when needed.
push:
branches: ["**"]
branches: [ main ]
workflow_dispatch:

# Serialize main builds; a newer main push supersedes an older in-flight build.
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true

jobs:
build-amd64:
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
name: Go Tests with Docker Compose

on:
push:
branches: [ main ]
# Tests gate PRs into main. The redundant push:main run (same commits already
# tested on the PR) is dropped; keep workflow_dispatch for manual reruns.
pull_request:
branches: [ main ]
workflow_dispatch:

# Cancel superseded runs when a PR is updated with new commits.
concurrency:
group: test-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
test:
Expand Down
Loading