https://github.com/byteshiva/podman-ghcr-automation
Automating Podman and GHCR with GitHub Actions
https://github.com/byteshiva/podman-ghcr-automation
github github-actions podman
Last synced: 4 months ago
JSON representation
Automating Podman and GHCR with GitHub Actions
- Host: GitHub
- URL: https://github.com/byteshiva/podman-ghcr-automation
- Owner: byteshiva
- License: apache-2.0
- Created: 2025-02-02T08:21:32.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-18T00:23:06.000Z (over 1 year ago)
- Last Synced: 2025-05-30T05:47:51.431Z (about 1 year ago)
- Topics: github, github-actions, podman
- Language: Dockerfile
- Homepage:
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Automating Podman and GHCR with GitHub Actions
This repository demonstrates how to automate container image builds and deployments using **Podman** and **GitHub Container Registry (GHCR)** with **GitHub Actions**. It provides a ready-to-use GitHub Actions workflow to streamline your CI/CD pipeline for containerized applications.
---
## Features
- **Automated CI/CD Pipeline**: Build and push container images to GHCR on every push to the `main` branch.
- **Podman Integration**: Use Podman's daemonless architecture for lightweight and secure container builds.
- **GitHub Actions Workflow**: A sample workflow file (`.github/workflows/podman-ghcr.yml`) is included for easy setup.
- **Secure Authentication**: Uses GitHub's `GITHUB_TOKEN` for seamless authentication with GHCR.
---
## Workflow Overview
The included workflow automates the following steps:
1. **Checkout the code**: Pulls the latest code from the repository.
2. **Set up Podman**: Configures Podman to authenticate with GHCR.
3. **Build the container image**: Uses Podman to build the image.
4. **Push the image to GHCR**: Uploads the built image to GitHub Container Registry.
5. **Verify the image**: Optionally lists the images to verify the build.
---
## Getting Started
1. **Fork or Clone this Repository**:
```bash
git clone https://github.com/byteshiva/podman-ghcr-automation.git
cd podman-ghcr-automation