-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename next-image-tag-number, update READMEs
- Loading branch information
Showing
5 changed files
with
45 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# next-image-tag-number GitHub Action | ||
|
||
The **next-image-tag-number** action calculates the next sequential tag for an image in an OCI repository. This is useful for tracking build numbers or versioning images in continuous integration workflows. | ||
|
||
## Usage | ||
|
||
Specify the OCI image repository URL in your workflow, along with optional parameters: | ||
|
||
```yaml | ||
jobs: | ||
next-tag: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Get Next Image Tag Number | ||
id: next-tag | ||
uses: codebandits/github-actions/next-image-tag-number@main | ||
with: | ||
image_repository_url: https://registry.example.com/v2/my-repo/my-image | ||
bearer_token: ${{ secrets.REPO_BEARER_TOKEN }} | ||
initial_number: 100 | ||
tag_prefix: build- | ||
|
||
- run: echo "Next tag is ${{ steps.next-tag.outputs.tag }} with number ${{ steps.next-tag.outputs.number }}" | ||
``` | ||
## Inputs | ||
- `image_repository_url:` **Required.** The URL of the OCI-compatible image repository. | ||
- `bearer_token:` Optional. The bearer token for repository authentication. Defaults to empty (no authentication). | ||
- `initial_number:` Optional. Starting tag number if no tags exist in the repository. Defaults to 1. | ||
- `tag_prefix:` Optional. Prefix for the tags. Defaults to build-. | ||
|
||
## Outputs | ||
|
||
- `tag:` The next tag, including the prefix and tag number. | ||
- `number:` The next tag number. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.