All checks were successful
Build FFmpeg Image / Build amd64 image (push) Successful in 54m4s
46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
name: Build FFmpeg Image
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
env:
|
|
REGISTRY: 192.168.1.95:3000
|
|
IMAGE_NAME: timothy/ersatztv-ffmpeg
|
|
RELEASE_VERSION: 7.1.1
|
|
|
|
jobs:
|
|
build:
|
|
name: Build amd64 image
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
with:
|
|
buildkitd-config-inline: |
|
|
[registry."192.168.1.95:3000"]
|
|
http = true
|
|
|
|
- name: Login to Gitea registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: ${{ env.REGISTRY }}
|
|
username: ${{ secrets.REGISTRY_USER }}
|
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
|
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
file: ./images/linux/amd64/Dockerfile
|
|
push: ${{ github.ref == 'refs/heads/main' }}
|
|
platforms: linux/amd64
|
|
tags: |
|
|
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.RELEASE_VERSION }}
|
|
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|