Access private image registry for a GitHub Action

Viewed 120

Is there a way to use private images from a registry with authentication for custom GitHub Docker container actions? Would like to point at runs.image to a private docker image. Ideally, one which is uploaded to a GitHub Packages registry.

# action.yml
name: 'Hello World'
description: 'Greet someone'
inputs:
  who_to_greet:  # id of input
    description: 'Who to greet'
    required: true
    default: 'World'
outputs:
  time: # id of output
    description: 'The time we greeted you'
runs:
  using: 'docker'
  image: 'Dockerfile'
  args:
    - ${{ inputs.who_to_greet }}

https://docs.github.com/en/actions/creating-actions/creating-a-docker-container-action

0 Answers
Related