Add GitHub Actions workflow for building and publishing

This commit is contained in:
lyncolnmd
2026-02-01 11:48:32 -05:00
committed by GitHub
parent 8d8c318478
commit d1c7005370

40
.github/workflows/build.yml vendored Normal file
View File

@@ -0,0 +1,40 @@
name: Build and Publish TVJ EPG Image
on:
push:
branches: [ "main" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Podman
run: |
sudo apt-get update
sudo apt-get install -y podman
- name: Log in to GitHub Container Registry
run: |
echo "${{ secrets.GHCR_TOKEN }}" | podman login ghcr.io \
-u ${{ github.actor }} \
--password-stdin
- name: Build image with Podman
run: |
podman build \
-f Containerfile \
-t ghcr.io/${{ github.repository }}:latest \
.
- name: Push image to GHCR
run: |
podman push ghcr.io/${{ github.repository }}:latest