name: github-action-docker-image-exists
on:
push:
branches: [ master ]
jobs:
context:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: github-action-docker-image-exists
id: image_exists
uses: cloudposse/github-action-docker-image-[email protected]
with:
registry: registry.hub.docker.com
organization: "${{ github.event.repository.owner.login }}"
repository: "${{ github.event.repository.name }}"
login: "${{ secrets.DOCKERHUB_USERNAME }}"
password: "${{ secrets.DOCKERHUB_PASSWORD }}"
tag: latest
outputs:
result: ${{ steps.image_exists.conclusion }}
image: ${{ steps.image_exists.outputs.image }}
tag: ${{ steps.image_exists.outputs.tag }}