fix(ci): only run docker image workflow for release tags (#1916)

This commit is contained in:
Marc Chan 2026-05-16 22:32:33 +08:00 committed by GitHub
parent 440de58e10
commit 1f728ac8e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,18 +3,11 @@ name: Docker image
# Phase 5 / spec §15.5 — multi-arch image builds.
#
# Pushes to ghcr.io on:
# - main branch → ghcr.io/<owner>/od:edge + :sha-<short>
# - tag (v*) → ghcr.io/<owner>/od:<tag> + :latest
#
# Pull requests build the image but do not push (smoke test only).
# - tag (v*.*.*) → ghcr.io/<owner>/od:<tag> + :latest
on:
push:
branches: [main]
tags: ['v*.*.*']
pull_request:
branches: [main]
workflow_dispatch:
jobs:
build-and-push: