Files
tvj-epg/.github/workflows/build.yml

41 lines
889 B
YAML

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