GitHub Action to log into a container image registry. For use with podman, buildah, and skopeo.
Find a file
divyansh42 54f79a2a8b Add README.md
Signed-off-by: divyansh42 <diagrawa@redhat.com>
2021-04-01 14:08:52 +05:30
.github/workflows Modify action.yml 2021-03-31 23:59:17 +05:30
dist Add README.md 2021-04-01 14:08:52 +05:30
git-hooks First commit 🚀 2021-03-30 18:57:12 +05:30
src Add README.md 2021-04-01 14:08:52 +05:30
.eslintrc.js First commit 🚀 2021-03-30 18:57:12 +05:30
.gitignore First commit 🚀 2021-03-30 18:57:12 +05:30
action.yml Modify action.yml 2021-03-31 23:59:17 +05:30
LICENSE First commit 🚀 2021-03-30 18:57:12 +05:30
package-lock.json First commit 🚀 2021-03-30 18:57:12 +05:30
package.json Update code 2021-03-31 14:44:20 +05:30
README.md Add README.md 2021-04-01 14:08:52 +05:30
tsconfig.json First commit 🚀 2021-03-30 18:57:12 +05:30

buildah-build

CI checks Build Link checker

tag badge license badge size badge

Podman login is a GitHub Action to login against a container image registry.

This action only runs on Linux, as it uses podman to perform the login. GitHub's Ubuntu action runners come with Podman preinstalled. If you are not using those runners, you must first install Podman.

After logging to container image registry, you may use push-to-registry to push the image and make it pullable.

Action Inputs

Input Name Description Default
registry Server URL of the container image registry. Example: quay.io Must be provided
username Username to login against the container image registry. Must be provided
password Password or token to login against the container image registry. Must be provided
logout Set to false if you don't want to logout to container image registry at the end of the job. true

Example

The example below shows how the podman-login action can be used to login to quay.io container image registry.

name: Login to Quay.io
on:
  push:

env:
  REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
  IMAGE_REGISTRY: quay.io
  REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}

jobs:
  login:
    name: Login to container image registry
    runs-on: ubuntu-20.04
    steps:

      - name: Login to Quay.io
        uses: redhat-actions/podman-login@v1
        with:
          username: ${{ env.REGISTRY_USER }}
          password: ${{ env.REGISTRY_PASSWORD }}
          registry: ${{ env.IMAGE_REGISTRY }}
          logout: false # Do not logout at the end of the job