mirror of https://github.com/openwrt/docker.git
ci: run on docker-builder
Our CI is often heavily overloaded by CI testing jobs, however those Docker containers shouldn't be delayed by multiple hours. Let's have our own builder that does nothing but uploading those containers in time. Signed-off-by: Paul Spooren <mail@aparcar.org>pull/145/head
parent
66519f65d1
commit
7c92c6e3d4
|
|
@ -29,7 +29,8 @@ on:
|
|||
jobs:
|
||||
generate_matrix:
|
||||
name: Set matrix
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ${{ (github.event_name != 'pull_request') && fromJSON('[ "docker-builder", "Linux", "X64" ]') || 'ubuntu-latest' }}
|
||||
|
||||
outputs:
|
||||
imagebuilders: ${{ steps.find_targets.outputs.imagebuilders }}
|
||||
rootfs: ${{ steps.find_targets.outputs.rootfs }}
|
||||
|
|
@ -169,7 +170,7 @@ jobs:
|
|||
|
||||
push-imagebuilder-container:
|
||||
name: ImageBuilder
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ${{ (github.event_name != 'pull_request') && fromJSON('[ "docker-builder", "Linux", "X64" ]') || 'ubuntu-latest' }}
|
||||
needs: generate_matrix
|
||||
strategy:
|
||||
fail-fast: False
|
||||
|
|
@ -231,7 +232,7 @@ jobs:
|
|||
|
||||
push-sdk-container:
|
||||
name: SDK
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ${{ (github.event_name != 'pull_request') && fromJSON('[ "docker-builder", "Linux", "X64" ]') || 'ubuntu-latest' }}
|
||||
needs: generate_matrix
|
||||
strategy:
|
||||
fail-fast: False
|
||||
|
|
@ -348,7 +349,7 @@ jobs:
|
|||
|
||||
push-rootfs-container:
|
||||
name: RootFS
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ${{ (github.event_name != 'pull_request') && fromJSON('[ "docker-builder", "Linux", "X64" ]') || 'ubuntu-latest' }}
|
||||
needs: generate_matrix
|
||||
if: needs.generate_matrix.outputs.rootfs != '{"include":[]}'
|
||||
strategy:
|
||||
|
|
|
|||
Loading…
Reference in New Issue