Skip to content
upload-cloud

GitHub Action

Podman Build & Push (GCR)

v2.1 Latest version

Podman Build & Push (GCR)

upload-cloud

Podman Build & Push (GCR)

Build and Push action for Google Container Registry

Installation

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

              

- name: Podman Build & Push (GCR)

uses: webgtx/gcr-podman-action@v2.1

Learn more about this action in webgtx/gcr-podman-action

Choose a version

Featureful Google Container Registry Push Action 🏗

Build and Push your images securly with lightweight podman

Github Action Inputs

Variable Description
access_token Required Service Account JSON Key (base64 encoded) or oauth Access Token
auth_type Authetication Type oauth2 or jsonkey, default "jsonkey"
project_id Required Project Name
host Registry host name, default: "gcr.io"
image_id Required Image name with tag

Example usage

- uses: webgtx/gcr-podman-action@v2
  with:
    project_id: init64
    image_id: webgtx-blog:latest
    access_token: ${{ secrets.GOOGLE_JSON_KEY }}

Why podman

Podman allows for non-root privileges for containers.Rootless containers are considered safer than containers with root privileges. In Docker, daemons have root privileges, making them the preferred gateway for attackers. Containers in Podman do not have root access by default, adding a natural barrier between root and rootless levels, improving security. Still, Podman can run both root and rootless containers.