You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 88b1910
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ reviewed commit SHA in production.
8
8
| Action | Purpose |
9
9
| --- | --- |
10
10
|[headlamp-test](headlamp-test/README.md)| Lint, check formatting and types, test, and build a Headlamp plugin from a configurable directory. Includes a workflow template. |
11
-
|[headlamp-publish](headlamp-publish/README.md)| Build a Headlamp plugin, upload its GitHub release archive, and publish versioned Artifact Hub metadata to a configurable branch. |
11
+
|[headlamp-publish](headlamp-publish/README.md)| Build a Headlamp plugin or reuse an already published archive, then publish versioned Artifact Hub metadata to a configurable branch. |
12
12
|[helm-oci-chart](helm-oci-chart/README.md)| Package and push a Helm chart to an OCI registry, with optional signing. |
13
13
|[task-ko-publish](task-ko-publish/README.md)| Publish a ko image through a Task target, generate and attach a CycloneDX SBOM, and optionally sign it. |
14
14
|[exists](exists/README.md)| Return whether an input is nonempty. |
Copy file name to clipboardExpand all lines: headlamp-publish/README.md
+38-2Lines changed: 38 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,11 @@ Builds a plugin with `npm ci`, `npm run build`, and `npm run package`; uploads i
6
6
to `headlamp/`. Container-image building, signing, and attestations can follow as
7
7
separate steps in the caller's workflow.
8
8
9
+
When GoReleaser or another release tool already packages, signs, and uploads the
10
+
plugin, pass its archive through `archive` to publish only the Artifact Hub
11
+
metadata. The action verifies the released archive's checksum without rebuilding
12
+
the plugin, changing source package files, or creating or uploading release assets.
13
+
9
14
```yaml
10
15
name: Publish Headlamp plugin
11
16
on:
@@ -45,19 +50,50 @@ in the source checkout, without committing them.
45
50
| Input | Default | Meaning |
46
51
| --- | --- | --- |
47
52
| `build-root` | `headlamp/` | Plugin path relative to `GITHUB_WORKSPACE`; `.` builds at the repository root. |
53
+
| `archive` | empty | Prebuilt `.tar.gz` path or glob relative to `GITHUB_WORKSPACE`; must match exactly one file already attached to the published release. Skips plugin installation, version changes, building, packaging, and release uploads. |
48
54
| `target-branch` | `artifacthub` | Branch to update or create for metadata. |
49
55
| `tag` | `github.ref_name` | Existing tag matching the checked-out commit; exact SemVer with optional `v`, including prereleases, without `+` build metadata. |
50
56
| `package-name` | `package.json` name | Artifact Hub package name and directory; lowercase letters, digits, and hyphens. Override this for scoped npm names. |
Copy file name to clipboardExpand all lines: headlamp-publish/action.yaml
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
name: Publish Headlamp plugin
2
-
description: Build a plugin, publish its GitHub release archive, and update an Artifact Hub branch.
2
+
description: Build or reuse a pluginarchive and publish versioned Artifact Hub metadata.
3
3
4
4
inputs:
5
5
token:
@@ -10,6 +10,9 @@ inputs:
10
10
description: Plugin directory relative to the checked-out repository.
11
11
required: false
12
12
default: headlamp/
13
+
archive:
14
+
description: Prebuilt .tar.gz path or glob relative to the checkout. Must match one archive already attached to the release; skips plugin builds and release uploads.
15
+
required: false
13
16
target-branch:
14
17
description: Branch containing the versioned Artifact Hub metadata.
15
18
required: false
@@ -61,12 +64,13 @@ runs:
61
64
env:
62
65
ACTION_PATH: ${{ github.action_path }}
63
66
run: npm ci --ignore-scripts --no-audit --no-fund --prefix "$ACTION_PATH/.."
0 commit comments