63 lines
1.9 KiB
YAML
63 lines
1.9 KiB
YAML
name: Build FFmpeg
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
build_base:
|
|
name: Build base image
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: Pull latest
|
|
run: docker pull btbn/ffmpeg-builder:base || true
|
|
- name: Build and push base
|
|
uses: docker/build-push-action@v1
|
|
with:
|
|
username: ${{ secrets.DOCKER_USER }}
|
|
password: ${{ secrets.DOCKER_TOKEN }}
|
|
repository: btbn/ffmpeg-builder
|
|
tags: base
|
|
path: base
|
|
build_target_bases:
|
|
name: Build target base images
|
|
needs: build_base
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
target: [win64]
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: Pull latest
|
|
run: docker pull btbn/ffmpeg-builder:base-${{ matrix.target }} || true
|
|
- name: Build and push target base
|
|
uses: docker/build-push-action@v1
|
|
with:
|
|
username: ${{ secrets.DOCKER_USER }}
|
|
password: ${{ secrets.DOCKER_TOKEN }}
|
|
repository: btbn/ffmpeg-builder
|
|
tags: base-${{ matrix.target }}
|
|
path: base-${{ matrix.target }}
|
|
build_targets:
|
|
name: Build target images
|
|
needs: build_target_bases
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
target: [win64]
|
|
variant: [gpl,lgpl]
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: Generate Dockerfile
|
|
run: ./generate.sh ${{ matrix.target }} ${{ matrix.variant }}
|
|
- name: Pull latest
|
|
run: docker pull btbn/ffmpeg-builder:${{ matrix.target }}-${{ matrix.variant }} || true
|
|
- name: Build and push target base
|
|
uses: docker/build-push-action@v1
|
|
with:
|
|
username: ${{ secrets.DOCKER_USER }}
|
|
password: ${{ secrets.DOCKER_TOKEN }}
|
|
repository: btbn/ffmpeg-builder
|
|
tags: ${{ matrix.target }}-${{ matrix.variant }}
|