Skip to content
watch

GitHub Action

Wait Docker image

v1.0.0 Latest version

Wait Docker image

watch

Wait Docker image

Wait for a Docker image to be available

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Wait Docker image

uses: PaulLesur/[email protected]

Learn more about this action in PaulLesur/wait-docker-image-github-action

Choose a version

wait-docker-image-github-action

A simple Github Action waiting for a Docker image.

Inputs

Required

image

String The name of the image to wait for.

Optional

tag

String Optional tag for the image, default: latest

timeout

Integer Timeout in seconds, default: 3600

fail-on-timeout

Boolean Wether to fail the job or not if the timeout is over, default: true

user

String Registry user to use.

password

String Registry password to use.

Example usage

Example usage to wait for ubuntu:18.04 image to be available, if the image is not available after 1 minute, the job does not fail and continues.

uses: PaulLesur/[email protected]
with:
    image: ubuntu
    tag: 18.04
    timeout: 60
    fail-on-timeout: false