Skip to content

Github action that can be used to search docker tags using filters

Notifications You must be signed in to change notification settings

sylvanld/action-search-docker-tag

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

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

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 }}"

About

Github action that can be used to search docker tags using filters

Resources

Stars

Watchers

Forks

Packages

No packages published