Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

ci(release): publish the GitHub Release only after the image build (#389)

Yudhi Armyndharisb7455a32f464
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 7f162b952..5cbb42a07 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -39,7 +39,10 @@ jobs:
release:
name: GitHub Release
runs-on: ubuntu-latest
- needs: [test]
+ # Gate the public Release on a successfully built+pushed image, so a tag never produces a GitHub
+ # Release without a matching container image (the docker job also builds the dashboard, which the
+ # test gate above does not). Trades a few minutes of buildx latency for release/image consistency.
+ needs: [test, docker]
steps:
- uses: actions/checkout@v6
with:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 708ff6b0f..132364483 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
+### Changed
+
+- **A published GitHub Release now waits for the container image build.** The release workflow's
+ GitHub Release job now depends on the Docker image job, so a `v*` tag can no longer publish release
+ notes without a matching multi-arch image on GHCR. A failed image build leaves the tag without a
+ Release until the workflow is re-run. (#389)
+
### Fixed
- **Dashboard collapses duplicate connection-lost toasts during a reverse-proxy outage.** When the
diff --git a/docs/09-testing-strategy.md b/docs/09-testing-strategy.md
index 72ee49bde..d1c16e4c9 100644
--- a/docs/09-testing-strategy.md
+++ b/docs/09-testing-strategy.md
@@ -142,8 +142,9 @@ CI is defined in `.github/workflows/ci.yml`.
| `build` | backend build after lint/test/dashboard jobs pass |
| `docker` | multi-arch Docker build and push on branch pushes |
-Release tags run `.github/workflows/release.yml`, which gates release and Docker publishing behind tests
-and build.
+Release tags run `.github/workflows/release.yml`, which gates Docker publishing behind tests and build,
+and publishes the GitHub Release only after the image build succeeds — so a tag never ends up with
+release notes but no matching multi-arch image.
## 09.7 Testing Guidelines