Skip to content
play

GitHub Action

Container Image Updater

v1.0.6 Latest version

Container Image Updater

play

Container Image Updater

Github action to notify if the container image needs update based on the baseimage change

Installation

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

              

- name: Container Image Updater

uses: mkumatag/[email protected]

Learn more about this action in mkumatag/container-image-updater-action

Choose a version

container-image-updater

This action prints "true" if image is required to update based on the base image update.

Inputs

Name Type Description
base-image Required Base image of the image
image Required The container image to be monitored, based on base-image
base-reg-username,
base-reg-password
Optional Image registry credential to access base image.
image-reg-username,
image-reg-password
Optional Image registry credential to access image to be monitored.

Outputs

Name Description
needs-update Returns true or false.

Example usage

Public images

uses: mkumatag/[email protected]
with:
  base-image: 'alpine:3.14'
  image: 'alpine:3.13'

Private images

uses: mkumatag/[email protected]
with:
  base-image: 'alpine:3.14'
  image: 'alpine:3.13'
  base-reg-username: someuser
  base-reg-password: somepassword
  image-reg-username: someuser
  image-reg-password: somepassword

Blog:

https://medium.com/@manjunathkumatagi/streamlining-docker-image-updates-monitoring-and-rebuilding-with-github-plugin-c244dc85fb6a