From 48fe256e98e41eff3faca444f4083c90b2c0f0cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=ED=83=9C=ED=99=98=20=EB=B0=95?= Date: Thu, 16 Jul 2026 12:47:46 +0900 Subject: [PATCH] =?UTF-8?q?fix(ci):=20helm-publish=20=ED=83=9C=EA=B7=B8=20?= =?UTF-8?q?push=EA=B0=80=20paths=20=ED=95=84=ED=84=B0=EB=A1=9C=20=EC=A1=B0?= =?UTF-8?q?=EC=9A=A9=ED=9E=88=20=EC=8A=A4=ED=82=B5=EB=90=98=EB=8A=94=20?= =?UTF-8?q?=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit on.push에 branches+tags를 같이 쓰면 GitHub Actions가 paths 필터를 태그 push에도 그대로 적용한다. charts/**를 안 건드린 태그(v1.16.6, CI-only 커밋)가 스킵되어 gh-pages index.yaml과 ghcr.io OCI chart가 1.16.5에 정체되는 사고로 이어졌다. paths 필터를 제거 — 각 publish 단계는 이미 멱등(CR_SKIP_EXISTING / OCI "already exists" early-exit)이라 불필요한 재publish 비용 없이 태그 push 누락만 막는다. 검증: $ python3 -c "import yaml; yaml.safe_load(open('.github/workflows/helm-publish.yml'))" YAML valid Refs: gh workflow run helm-publish.yml -f tag=v1.16.6 → HTTP 422 "Actions has been disabled for this user" (계정 레벨 차단, 별도 이슈 — 본 fix는 그 차단 해소 후 태그 push가 다시 스킵되지 않도록 하는 선행 조치) Signed-off-by: 태환 박 --- .github/workflows/helm-publish.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/helm-publish.yml b/.github/workflows/helm-publish.yml index 51bf9465..f1758e46 100644 --- a/.github/workflows/helm-publish.yml +++ b/.github/workflows/helm-publish.yml @@ -5,22 +5,22 @@ name: Helm chart publish # 2. ghcr.io OCI → oci://ghcr.io/keiailab/charts/mongodb-operator ← ArtifactHub 추적 소스 # # 트리거 4종 — 어느 릴리스 방식이든 작동: -# - push: stable → Chart.yaml version SSOT 기준 자동 publish +# - push: main → Chart.yaml version SSOT 기준 자동 publish # - release: published → `gh release create vX.Y.Z` (GitHub UI/API/CLI) # - push: tags ['v*'] → `git push origin vX.Y.Z` # - workflow_dispatch → 수동 재실행 / 백필 +# +# paths 필터를 두지 않는다: GitHub Actions는 branches+tags를 한 push 트리거에 +# 같이 쓰면 paths가 태그 push에도 그대로 적용된다 — charts/** 를 안 건드린 태그 +# (예: CI-only 커밋)가 조용히 스킵되어 gh-pages/ghcr가 뒤처지는 사고가 있었다 +# (v1.16.6 미발행). 각 publish 단계 자체가 이미 멱등(CR_SKIP_EXISTING / OCI +# "already exists" early-exit)이라 paths 필터 없이도 불필요한 재publish는 없다. on: release: types: [published] push: branches: [main] tags: ['v*'] - paths: - - 'charts/**' - - 'docs/branding/**' - - 'docs/BRANDING.md' - - 'README.md' - - '.github/workflows/helm-publish.yml' workflow_dispatch: inputs: tag: