2020-09-03 00:15:17 +00:00
|
|
|
name: Build FFmpeg
|
|
|
|
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build_base:
|
|
|
|
name: Build base image
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
2020-09-03 01:13:45 +00:00
|
|
|
- name: Pull latest
|
|
|
|
run: docker pull btbn/ffmpeg-builder:base || true
|
2020-09-03 00:15:17 +00:00
|
|
|
- name: Build and push base
|
|
|
|
uses: docker/build-push-action@v1
|
|
|
|
with:
|
2020-09-03 01:13:45 +00:00
|
|
|
username: ${{ secrets.DOCKER_USER }}
|
|
|
|
password: ${{ secrets.DOCKER_TOKEN }}
|
2020-09-03 12:41:26 +00:00
|
|
|
always_pull: true
|
2020-09-03 12:48:32 +00:00
|
|
|
cache_froms: btbn/ffmpeg-builder:base
|
2020-09-03 01:13:45 +00:00
|
|
|
repository: btbn/ffmpeg-builder
|
2020-09-03 00:54:36 +00:00
|
|
|
tags: base
|
2020-09-03 14:33:29 +00:00
|
|
|
path: images/base
|
2020-09-03 00:15:17 +00:00
|
|
|
build_target_bases:
|
2020-09-03 12:41:26 +00:00
|
|
|
name: Build target base image
|
2020-09-03 00:15:17 +00:00
|
|
|
needs: build_base
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
target: [win64]
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
2020-09-03 01:13:45 +00:00
|
|
|
- name: Pull latest
|
|
|
|
run: docker pull btbn/ffmpeg-builder:base-${{ matrix.target }} || true
|
2020-09-03 00:15:17 +00:00
|
|
|
- name: Build and push target base
|
|
|
|
uses: docker/build-push-action@v1
|
|
|
|
with:
|
2020-09-03 01:13:45 +00:00
|
|
|
username: ${{ secrets.DOCKER_USER }}
|
|
|
|
password: ${{ secrets.DOCKER_TOKEN }}
|
2020-09-03 12:41:26 +00:00
|
|
|
always_pull: true
|
2020-09-03 12:48:32 +00:00
|
|
|
cache_froms: btbn/ffmpeg-builder:base-${{ matrix.target }}
|
2020-09-03 01:13:45 +00:00
|
|
|
repository: btbn/ffmpeg-builder
|
2020-09-03 00:54:36 +00:00
|
|
|
tags: base-${{ matrix.target }}
|
2020-09-03 14:33:29 +00:00
|
|
|
path: images/base-${{ matrix.target }}
|
2020-09-03 00:15:17 +00:00
|
|
|
build_targets:
|
2020-09-03 12:41:26 +00:00
|
|
|
name: Build target-variant image
|
2020-09-03 00:15:17 +00:00
|
|
|
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 }}
|
2020-09-03 01:13:45 +00:00
|
|
|
- name: Pull latest
|
|
|
|
run: docker pull btbn/ffmpeg-builder:${{ matrix.target }}-${{ matrix.variant }} || true
|
2020-09-03 00:15:17 +00:00
|
|
|
- name: Build and push target base
|
|
|
|
uses: docker/build-push-action@v1
|
|
|
|
with:
|
2020-09-03 01:13:45 +00:00
|
|
|
username: ${{ secrets.DOCKER_USER }}
|
|
|
|
password: ${{ secrets.DOCKER_TOKEN }}
|
2020-09-03 12:41:26 +00:00
|
|
|
always_pull: true
|
2020-09-03 12:48:32 +00:00
|
|
|
cache_froms: btbn/ffmpeg-builder:${{ matrix.target }}-${{ matrix.variant }}
|
2020-09-03 01:13:45 +00:00
|
|
|
repository: btbn/ffmpeg-builder
|
2020-09-03 00:54:36 +00:00
|
|
|
tags: ${{ matrix.target }}-${{ matrix.variant }}
|
2020-09-03 14:33:29 +00:00
|
|
|
build_ffmpeg:
|
|
|
|
name: Build ffmpeg
|
|
|
|
needs: build_targets
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
target: [win64]
|
|
|
|
variant: [gpl,lgpl]
|