Skip to content

Commit

Permalink
Add README to action
Browse files Browse the repository at this point in the history
  • 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.
39 changes: 39 additions & 0 deletions README.md
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 }}"
```

0 comments on commit 9efdead

Please sign in to comment.