Commit Graph

117 Commits

Author SHA1 Message Date
rcourtman
e74b09557d fix: trigger Docker publish workflow in release pipeline
The release workflow publishes via GitHub API (patching draft to
published), which doesn't fire the release webhook. This meant the
Docker publish workflow was never triggered automatically.

Added explicit workflow dispatch for publish-docker.yml after release
publish, similar to how update-demo-server.yml was already dispatched.

Related to #797
2025-12-02 17:32:30 +00:00
rcourtman
0657fca003 Fix docker-compose command not found in integration tests
Replace deprecated docker-compose with docker compose (Docker CLI plugin)
on modern Ubuntu runners.
2025-12-01 00:40:00 +00:00
rcourtman
820f822476 Fix integration tests workflow missing frontend npm ci 2025-11-30 23:50:31 +00:00
rcourtman
0ad83bf27e Fix WORKFLOW_PAT secret reference syntax 2025-11-30 21:34:27 +00:00
rcourtman
120474d1f5 Use WORKFLOW_PAT for demo server dispatch if available 2025-11-30 21:31:39 +00:00
rcourtman
d305fb0243 Make demo server trigger non-fatal in release workflow
GITHUB_TOKEN cannot dispatch workflows in the same repo. Mark the step
as continue-on-error so the release succeeds even if demo update fails.

Related to v4.34.1 release failure.
2025-11-28 21:32:36 +00:00
rcourtman
f559dd35da Add workflow_dispatch to publish-docker.yml for manual triggers
Allows manual triggering when release.published webhook fails.
Related to #774
2025-11-28 20:01:08 +00:00
rcourtman
66edc8f07d Fix demo server not updating after release
Publishing via gh api PATCH doesn't fire the release webhook,
so the update-demo-server workflow never triggered for v4.34.0.

Now explicitly dispatch the demo update workflow after publishing.

Related to #735
2025-11-27 22:08:53 +00:00
rcourtman
9cca0f75d6 fix: set make_latest=true when publishing releases
Without this flag, releases published from draft state don't
automatically become the 'latest' release on GitHub, causing
users to download outdated installer scripts.
2025-11-26 22:41:18 +00:00
rcourtman
da31905c79 fix: auto-publish release instead of leaving as draft
The release pipeline now publishes the release automatically after
uploading all assets. This ensures downstream workflows (Docker publish,
Helm chart, demo server update) see the correct "latest" release and
don't skip due to the race condition where the draft wasn't published yet.
2025-11-26 21:54:37 +00:00
rcourtman
14e67df535 fix: create tag before draft release (GitHub API limitation)
Draft releases cannot create tags via the GitHub API, resulting in
'untagged-xxx' releases. Fixed by creating the tag first, then
creating the draft release pointing to it.

See: https://github.com/cli/cli/issues/11589
2025-11-26 15:48:56 +00:00
rcourtman
7eff58dc1a refactor: build Docker images once, retag on publish
- Preflight builds multi-arch images to staging tags on GHCR
- Publish workflow just retags staging → final (no rebuild)
- Reduces publish time from ~10min to ~1min
2025-11-26 15:35:34 +00:00
rcourtman
35313e298d refactor: split Docker publish into separate workflow
Docker images now build only after release is published, not during
the draft creation phase. This prevents users from getting updates
before the release is reviewed and approved.
2025-11-26 15:28:11 +00:00
rcourtman
6853a0ffd1 feat: serve install scripts from GitHub releases instead of main branch
Scripts like install.sh and install-sensor-proxy.sh are now attached
as release assets and downloaded from releases/latest/download/ URLs.
This ensures users always get scripts compatible with their installed
version, even while development continues on main.

Changes:
- build-release.sh: copy install scripts to release directory
- create-release.yml: upload scripts as release assets
- Updated all documentation and code references to use release URLs
- Scripts reference each other via release URLs for consistency
2025-11-26 08:59:59 +00:00
rcourtman
1d39a4b026 Fix: let GitHub API create the tag, don't pre-create it
GitHub's API has a quirk: if you POST to /releases with a tag_name
that already exists as a git tag, it creates an 'untagged' release
instead of attaching to the existing tag.

The fix is to let the API create both tag and release together.
2025-11-23 09:51:51 +00:00
rcourtman
8c5599db3b Add target_commitish to release API call
Without target_commitish, GitHub creates an untagged release
even when the tag exists.
2025-11-23 09:37:35 +00:00
rcourtman
c50869023d Fix: use GitHub API directly for release creation
gh release create doesn't work properly when the tag already exists -
it creates an 'untagged' release instead of attaching to the existing tag.

Using the API directly with POST to /releases fixes this.
2025-11-23 09:24:04 +00:00
rcourtman
1586f80208 Fix: create git tag explicitly before release
gh release create with --target was still creating untagged releases.
The fix is to create and push the git tag explicitly first, then
create the release which will properly attach to the existing tag.
2025-11-23 09:09:37 +00:00
rcourtman
30da2c8951 Fix release workflow to create tag automatically
The workflow was broken because it expected a tag to exist but the
documented process never created one. This caused gh release create
to fail with 'untagged' releases.

Changes:
- Workflow now creates the tag using --target flag
- Simplified release creation logic (no retry loops needed)
- Removed confusing comment about 'tag already exists'

This fixes the fundamental issue where the workflow and documented
process were out of sync.
2025-11-23 08:55:12 +00:00
courtmanr@gmail.com
9a99abbb66 chore(ci): keep release as draft for manual review 2025-11-23 08:25:37 +00:00
courtmanr@gmail.com
a7bad1056a fix(ci): robustly handle existing and untagged releases in workflow 2025-11-23 08:05:11 +00:00
courtmanr@gmail.com
1d1612de86 Auto-publish release after validation for v4.32.4 2025-11-23 00:21:15 +00:00
rcourtman
7c6ef377d8 Prevent helm chart releases from becoming latest 2025-11-20 16:35:55 +00:00
rcourtman
5f62894991 Skip demo update when target version already running 2025-11-20 15:08:34 +00:00
rcourtman
c24ecbd388 Skip demo updates for non-latest releases 2025-11-20 15:00:23 +00:00
rcourtman
7c15159e67 Avoid committing Helm chart on release runs 2025-11-20 14:49:56 +00:00
rcourtman
ef79b0041f Improve release workflows and cache usage 2025-11-20 13:59:15 +00:00
rcourtman
cf902a1f79 Reuse docker build cache between integration and release builds 2025-11-20 10:13:01 +00:00
rcourtman
854f025741 Handle host agent overrides in thresholds
Related to #722
2025-11-20 10:02:19 +00:00
rcourtman
6ac5e97eb5 Tighten release workflow triggers and test entrypoint 2025-11-20 09:59:42 +00:00
rcourtman
51710bc88f Stop release workflow from auto-triggering on tags 2025-11-20 09:56:08 +00:00
rcourtman
98d943edf2 CI: remove unsupported vitest args 2025-11-14 13:41:16 +00:00
rcourtman
c957ccd9e6 Add CI build workflow and tighten proxy diagnostics 2025-11-14 13:32:29 +00:00
rcourtman
36429f6540 Related to #701: improve sensor proxy installer caching 2025-11-14 00:51:54 +00:00
rcourtman
fb21319707 Fix YAML syntax errors in workflow files 2025-11-13 23:54:55 +00:00
rcourtman
7ca76afbf6 Add branch trigger for testing 2025-11-13 23:48:19 +00:00
rcourtman
cd26a62f0e Add minimal test workflow 2025-11-13 23:45:23 +00:00
rcourtman
8a32458609 Use GITHUB_EVENT_PATH to parse inputs avoiding template context errors 2025-11-13 23:44:40 +00:00
rcourtman
f55863cf02 Fix workflow inputs context for push events 2025-11-13 23:42:59 +00:00
rcourtman
39c026bad9 Re-add tag trigger to enable workflow 2025-11-13 23:37:48 +00:00
rcourtman
eb3b1a5b60 Match dry-run workflow format exactly 2025-11-13 23:29:56 +00:00
rcourtman
9dbe9f900d Rename workflow file to force new workflow_id 2025-11-13 23:29:19 +00:00
rcourtman
0e49b11b35 Remove tag trigger to test workflow_dispatch 2025-11-13 23:28:57 +00:00
rcourtman
675bd9e3d9 Add test workflow to diagnose dispatch issue 2025-11-13 23:26:39 +00:00
rcourtman
4e7efa57c3 Add new pulse-release workflow with unique name 2025-11-13 23:23:39 +00:00
rcourtman
25d603ceeb Remove duplicate release workflows to force GitHub re-indexing 2025-11-13 23:23:16 +00:00
rcourtman
a9df71a650 Force workflow re-index for v4.31.0 release 2025-11-13 23:18:12 +00:00
rcourtman
4ae28a48ce Add release-v2 workflow (fresh copy) 2025-11-13 12:51:26 +00:00
rcourtman
aeec079b10 Restore release workflow 2025-11-13 12:48:52 +00:00
rcourtman
744b036dcc Remove workflow temporarily 2025-11-13 12:48:35 +00:00