Search for last docker tag matching given pattern.
Required Full name of the image (as in: example/image, library/redis)
Optional A python regex pattern that searched tag must match.
Defaults to .+
meaning "match any version".
The latest tag matching your search.
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 }}"