|
|
name: 'Build LibreTV image' |
|
|
|
|
|
on: |
|
|
push: |
|
|
branches: |
|
|
- main |
|
|
workflow_dispatch: |
|
|
|
|
|
jobs: |
|
|
build: |
|
|
name: 'Build LibreTV image' |
|
|
runs-on: ubuntu-latest |
|
|
|
|
|
if: github.repository == 'bestzwei/LibreTV' |
|
|
env: |
|
|
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} |
|
|
|
|
|
steps: |
|
|
- name: 'Check out repository' |
|
|
uses: actions/checkout@v4.2.2 |
|
|
with: |
|
|
fetch-depth: 0 |
|
|
|
|
|
- name: 'Set up Docker QEMU' |
|
|
uses: docker/setup-qemu-action@v3.5.0 |
|
|
|
|
|
- name: 'Set up Docker Buildx' |
|
|
uses: docker/setup-buildx-action@v3.10.0 |
|
|
|
|
|
- name: 'Login to DockerHub' |
|
|
uses: docker/login-action@v3.4.0 |
|
|
with: |
|
|
username: ${{ secrets.DOCKER_USERNAME }} |
|
|
password: ${{ secrets.DOCKER_PASSWORD }} |
|
|
|
|
|
- name: 'Build and push LibreTV image' |
|
|
uses: docker/build-push-action@v6.14.0 |
|
|
with: |
|
|
context: . |
|
|
file: Dockerfile |
|
|
push: true |
|
|
tags: "${{ env.DOCKER_USERNAME }}/libretv:latest" |
|
|
platforms: linux/amd64,linux/arm64/v8,linux/arm/v7,linux/arm/v6,linux/386,linux/s390x |