-
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.
- Loading branch information
Sylvan Le Deunff
committed
Sep 22, 2023
1 parent
4e93b3e
commit 9efdead
Showing
1 changed file
with
39 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Search Docker tag action | ||
|
||
Search for last docker tag matching given pattern. | ||
|
||
## Inputs | ||
|
||
## `image` | ||
|
||
**Required** Full name of the image (as in: example/image, library/redis) | ||
|
||
## `search` | ||
|
||
**Optional** A python regex pattern that searched tag must match. | ||
|
||
Defaults to `.+` meaning "match any version". | ||
|
||
## Outputs | ||
|
||
## `tag` | ||
|
||
The latest tag matching your search. | ||
|
||
## Example usage | ||
|
||
```yaml | ||
jobs: | ||
example_job: | ||
... | ||
steps: | ||
- name: "Get latest redis tag" | ||
id: get-redis-tag | ||
uses: sylvanld/action-search-docker-tag@v1 | ||
with: | ||
image: 'library/redis' | ||
search: '\d+\.\d+\.\d+' | ||
|
||
- name: "Get the output time" | ||
run: echo "Redis latest version -> ${{ steps.get-redis-tag.outputs.tag }}" | ||
``` |