Skip to content

Commit 612db85

Browse files
authored
feat(release): draft a set version on dispatch, for lockstep with cryptos-manager (#204)
Refs CryptOS-PKI/cryptos-manager#210 Signed-off-by: Bugs5382 <12115015+Bugs5382@users.noreply.github.com> Co-authored-by: Bugs5382 <12115015+Bugs5382@users.noreply.github.com>
1 parent 4173e1c commit 612db85

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

‎.github/workflows/release-drafter.yml‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,18 @@ name: Release Drafter
1212
on:
1313
push:
1414
branches: [main]
15+
# cryptos-manager and cryptos-web are versioned in lockstep, but each repo
16+
# resolves its next version from its own labels, so the two drafts can come
17+
# out different. Dispatching with a version (no leading "v", e.g.
18+
# 0.1.0-rc.2) sets this repo's draft to it. Both drafts must carry the same
19+
# version before either is published; the merge freeze keeps a later push
20+
# from resolving it again.
1521
workflow_dispatch:
22+
inputs:
23+
version:
24+
description: "Draft this version instead of the one resolved from labels (no leading v, e.g. 0.1.0-rc.2)"
25+
required: false
26+
default: ""
1627

1728
permissions:
1829
contents: read
@@ -44,3 +55,4 @@ jobs:
4455
first-version: 0.1.0
4556
prerelease: true
4657
prerelease-identifier: rc
58+
version: ${{ inputs.version }}

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
This is the **only** web UI in the project, by design. CryptOS CA nodes ([`cryptos-node`](https://github.com/CryptOS-PKI/cryptos-node)) do not ship a web frontend in the OS image — they expose mTLS gRPC and that's it. When a fleet operator wants a web UI, they stand up the Fleet Manager (`manager/` backend + this frontend), link nodes to it, and use this UI for day-to-day operations.
1111

12-
Conceptually `manager/` and `web/` are one application split across two repos. The split exists so the backend and frontend can be built, tested, and released on their own cadences while still ending up in a single deployable container image (the frontend bundle is pinned to a specific commit and embedded into `manager/` via `embed.FS`).
12+
Conceptually `manager/` and `web/` are one application split across two repos. The split exists so the backend and frontend can be built and tested on their own while still ending up in a single deployable container image: the frontend bundle is embedded into `manager/` via `embed.FS`. The two are released in lockstep. The manager's `vX.Y.Z` image embeds this repo's `vX.Y.Z`, so this repo's release is published first, at the same version. Release Drafter resolves each repo's next version from its own labels; if the two drafts differ, dispatch the Release Drafter workflow with a `version` input (for example `0.1.0-rc.2`) to bring one in line.
1313

1414
## 📂 Layout
1515

0 commit comments

Comments
 (0)