Get the latest tag for an image on Docker Hub.
Add following step to the end of your workflow:
- name: Get latest tag
id: latest_tag
uses: jacobtomlinson/[email protected]
with:
org: 'mysql' # Docker Hub user or organisation name
repo: 'mysql-server' # Docker Hub repository name
# Optionally check the tag we got back
- name: Check outputs
run: |
echo "Latest Image Tag - ${{ steps.latest_tag.outputs.tag }}"