Skip to content

Image id action to retrieve image ID of a docker image

License

Notifications You must be signed in to change notification settings

sapvs/docker-image-id

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker image ID

A Github action to retrieve the image id for an image name.

This is useful if you want to check if images have been updated (comparing new vs old id). Mostly in case of images that are being used as base image in your image and you would like to re-create your image if the base image has changed.

Usage

  - name: Image ID
    id: image-id
    uses: s3vt/[email protected]
    with:
      image_name: "s3vt/java:18"

This can be used in sample projects as

on:
  push:

jobs:
  image-query:
    runs-on: ubuntu-latest
    name: Get Image ID
    steps:
      - name: Image ID
        id: image-id
        uses: s3vt/[email protected]
        with:
          image_name: "s3vt/java:17"
      - name: Print the image ID
        run: echo "Image ID is ${{ steps.image-id.outputs.image_id }}"
     

Action inputs

Name Description Default
image_name (required) Name of the image for which ID is to be retrieved.. alpine:latest

Action output

Name Description
image_id ID of the image requested.

About

Image id action to retrieve image ID of a docker image

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages