From d1c70053709f478540e972834bd52881e0f204c0 Mon Sep 17 00:00:00 2001 From: lyncolnmd <59033979+lyncolnmd@users.noreply.github.com> Date: Sun, 1 Feb 2026 11:48:32 -0500 Subject: [PATCH] Add GitHub Actions workflow for building and publishing --- .github/workflows/build.yml | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..ff268c0 --- /dev/null +++ b/.github/workflows/build.yml @@ -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