Add option to trigger ffmpeg-only build
This commit is contained in:
parent
dcbf2a77f3
commit
7f6eef0e5f
1 changed files with 8 additions and 0 deletions
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
|
@ -12,6 +12,11 @@ on:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
required: false
|
required: false
|
||||||
|
buildOnly:
|
||||||
|
description: 'Only build ffmpeg'
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
required: false
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 12 * * *'
|
- cron: '0 12 * * *'
|
||||||
|
|
||||||
|
@ -21,6 +26,7 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
build_base:
|
build_base:
|
||||||
name: Build base image
|
name: Build base image
|
||||||
|
if: ${{ github.event.inputs.buildOnly != 'true' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
@ -51,6 +57,7 @@ jobs:
|
||||||
cache-from: type=registry,ref=${{ steps.imagename.outputs.name }}:cache
|
cache-from: type=registry,ref=${{ steps.imagename.outputs.name }}:cache
|
||||||
build_target_bases:
|
build_target_bases:
|
||||||
name: Build target base image
|
name: Build target base image
|
||||||
|
if: ${{ github.event.inputs.buildOnly != 'true' }}
|
||||||
needs: build_base
|
needs: build_base
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
|
@ -86,6 +93,7 @@ jobs:
|
||||||
cache-from: type=registry,ref=${{ steps.imagename.outputs.name }}:cache
|
cache-from: type=registry,ref=${{ steps.imagename.outputs.name }}:cache
|
||||||
build_targets:
|
build_targets:
|
||||||
name: Build target-variant image
|
name: Build target-variant image
|
||||||
|
if: ${{ github.event.inputs.buildOnly != 'true' }}
|
||||||
needs: build_target_bases
|
needs: build_target_bases
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
|
|
Loading…
Reference in a new issue