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
> **Note:** If the workflow itself errors, `release-created` will be an empty string rather than `'false'`. Always use `== 'true'` rather than `!= 'false'` in conditions.
Copy file name to clipboardExpand all lines: docs/semver-container.md
+19-14Lines changed: 19 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,41 +2,46 @@
2
2
3
3
Reusable workflow that:
4
4
5
-
- tags an existing container image with semver tags (`x.y.z`, `x`, `x.y`) based on the git tag
5
+
- tags an existing container image with semver tags (`x.y.z`, `x`, `x.y`) based on a provided release tag
6
6
- verifies that a corresponding container image (tagged with the commit SHA) already exists
7
7
8
-
Use this when you already have an \"edge\" or commit-SHA container image (for example from the `publish-container` workflow) and you want to promote it to a semver release.
8
+
Use this when you already have an "edge" or commit-SHA container image (for example from the `publish-container` workflow) and you want to promote it to a semver release.
9
9
10
-
## Inputs
10
+
> **Note:** The `x` and `x.y` floating tags are only applied for stable releases. Pre-release versions (e.g. `1.0.0-beta.1`) receive only the full version tag.
|`image-name`| Yes | — | Image name, e.g. `my-app` or `services/api`. |
17
+
|`registry`| No |`'ghcr.io'`| Registry host. |
18
+
|`tag`| Yes | — | The release tag to derive semver from (e.g. `1.2.3` or `v1.2.3`). Typically passed from the `release-tag` output of the `semantic-release` workflow. |
18
19
19
20
## Secrets
20
21
21
-
-`GITHUB_TOKEN` — Pass with `secrets: inherit` so the workflow can read tags, create releases, and push tags in the container registry.
22
+
-`GITHUB_TOKEN` — Pass with `secrets: inherit` so the workflow can push tags in the container registry.
22
23
23
24
## Usage
24
25
25
-
This workflow is designed to as part of a release process.
26
+
This workflow is designed to run as part of a release process, chained after `semantic-release`:
0 commit comments