Skip to content

Commit

Permalink
Merge pull request #120 from MusicDin/feat/image-schedule
Browse files Browse the repository at this point in the history
Build images daily and remove master workflow
  • Loading branch information
tomponline authored Apr 2, 2024
2 parents 2b26864 + 26e9978 commit 5b74e34
Show file tree
Hide file tree
Showing 22 changed files with 84 additions and 223 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/image-almalinux.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
name: Build AlmaLinux Images

on:
schedule:
# Run at 00:00 UTC daily.
- cron: '0 0 * * *'
workflow_dispatch:
inputs:
publish:
type: boolean
default: false
description: Publish built image
workflow_call:
inputs:
publish:
type: boolean
default: true
description: Publish built image

jobs:
almalinux:
Expand Down Expand Up @@ -91,7 +88,7 @@ jobs:

- name: Upload image
uses: ./.github/actions/image-upload
if: inputs.publish == true
if: github.event_name == 'schedule' || inputs.publish == true
with:
target: ${{ env.target }}
image_dir: "${{ env.distro }}/${{ matrix.release }}/${{ matrix.architecture }}/${{ matrix.variant }}"
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/image-alpine.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
name: Build Alpine Images

on:
schedule:
# Run at 00:00 UTC daily.
- cron: '0 0 * * *'
workflow_dispatch:
inputs:
publish:
type: boolean
default: false
description: Publish built image
workflow_call:
inputs:
publish:
type: boolean
default: true
description: Publish built image

jobs:
alpine:
Expand Down Expand Up @@ -93,7 +90,7 @@ jobs:

- name: Upload image
uses: ./.github/actions/image-upload
if: inputs.publish == true
if: github.event_name == 'schedule' || inputs.publish == true
with:
target: ${{ env.target }}
image_dir: "${{ env.distro }}/${{ matrix.release }}/${{ matrix.architecture }}/${{ matrix.variant }}"
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/image-alt.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
name: Build ALT Linux Images

on:
schedule:
# Run at 00:00 UTC daily.
- cron: '0 0 * * *'
workflow_dispatch:
inputs:
publish:
type: boolean
default: false
description: Publish built image
workflow_call:
inputs:
publish:
type: boolean
default: true
description: Publish built image

jobs:
alt:
Expand Down Expand Up @@ -80,7 +77,7 @@ jobs:

- name: Upload image
uses: ./.github/actions/image-upload
if: inputs.publish == true
if: github.event_name == 'schedule' || inputs.publish == true
with:
target: ${{ env.target }}
image_dir: "${{ env.distro }}/${{ matrix.release }}/${{ matrix.architecture }}/${{ matrix.variant }}"
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/image-amazonlinux.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
name: Build AmazonLinux Images

on:
schedule:
# Run at 00:00 UTC daily.
- cron: '0 0 * * *'
workflow_dispatch:
inputs:
publish:
type: boolean
default: false
description: Publish built image
workflow_call:
inputs:
publish:
type: boolean
default: true
description: Publish built image

jobs:
amazonlinux:
Expand Down Expand Up @@ -106,7 +103,7 @@ jobs:

- name: Upload image
uses: ./.github/actions/image-upload
if: inputs.publish == true
if: github.event_name == 'schedule' || inputs.publish == true
with:
target: ${{ env.target }}
image_dir: "${{ env.distro }}/${{ matrix.release }}/${{ matrix.architecture }}/${{ matrix.variant }}"
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/image-archlinux.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
name: Build ArchLinux Images

on:
schedule:
# Run at 00:00 UTC daily.
- cron: '0 0 * * *'
workflow_dispatch:
inputs:
publish:
type: boolean
default: false
description: Publish built image
workflow_call:
inputs:
publish:
type: boolean
default: true
description: Publish built image

jobs:
archlinux:
Expand Down Expand Up @@ -100,7 +97,7 @@ jobs:

- name: Upload image
uses: ./.github/actions/image-upload
if: inputs.publish == true
if: github.event_name == 'schedule' || inputs.publish == true
with:
target: ${{ env.target }}
image_dir: "${{ env.distro }}/${{ matrix.release }}/${{ matrix.architecture }}/${{ matrix.variant }}"
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/image-busybox.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
name: Build BusyBox Images

on:
schedule:
# Run at 00:00 UTC daily.
- cron: '0 0 * * *'
workflow_dispatch:
inputs:
publish:
type: boolean
default: false
description: Publish built image
workflow_call:
inputs:
publish:
type: boolean
default: true
description: Publish built image

jobs:
busybox:
Expand Down Expand Up @@ -76,7 +73,7 @@ jobs:

- name: Upload image
uses: ./.github/actions/image-upload
if: inputs.publish == true
if: github.event_name == 'schedule' || inputs.publish == true
with:
target: ${{ env.target }}
image_dir: "${{ env.distro }}/${{ matrix.release }}/${{ matrix.architecture }}/${{ matrix.variant }}"
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/image-centos.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
name: Build CentOS Images

on:
schedule:
# Run at 00:00 UTC daily.
- cron: '0 0 * * *'
workflow_dispatch:
inputs:
publish:
type: boolean
default: false
description: Publish built image
workflow_call:
inputs:
publish:
type: boolean
default: true
description: Publish built image

jobs:
centos:
Expand Down Expand Up @@ -110,7 +107,7 @@ jobs:

- name: Upload image
uses: ./.github/actions/image-upload
if: inputs.publish == true
if: github.event_name == 'schedule' || inputs.publish == true
with:
target: ${{ env.target }}
image_dir: "${{ env.distro }}/${{ matrix.release }}/${{ matrix.architecture }}/${{ matrix.variant }}"
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/image-debian.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
name: Build Debian Images

on:
schedule:
# Run at 00:00 UTC daily.
- cron: '0 0 * * *'
workflow_dispatch:
inputs:
publish:
type: boolean
default: false
description: Publish built image
workflow_call:
inputs:
publish:
type: boolean
default: true
description: Publish built image

jobs:
debian:
Expand Down Expand Up @@ -90,7 +87,7 @@ jobs:

- name: Upload image
uses: ./.github/actions/image-upload
if: inputs.publish == true
if: github.event_name == 'schedule' || inputs.publish == true
with:
target: ${{ env.target }}
image_dir: "${{ env.distro }}/${{ matrix.release }}/${{ matrix.architecture }}/${{ matrix.variant }}"
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/image-devuan.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
name: Build Devuan Images

on:
schedule:
# Run at 00:00 UTC daily.
- cron: '0 0 * * *'
workflow_dispatch:
inputs:
publish:
type: boolean
default: false
description: Publish built image
workflow_call:
inputs:
publish:
type: boolean
default: true
description: Publish built image

jobs:
devuan:
Expand Down Expand Up @@ -80,7 +77,7 @@ jobs:

- name: Upload image
uses: ./.github/actions/image-upload
if: inputs.publish == true
if: github.event_name == 'schedule' || inputs.publish == true
with:
target: ${{ env.target }}
image_dir: "${{ env.distro }}/${{ matrix.release }}/${{ matrix.architecture }}/${{ matrix.variant }}"
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/image-fedora.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
name: Build Fedora Images

on:
schedule:
# Run at 00:00 UTC daily.
- cron: '0 0 * * *'
workflow_dispatch:
inputs:
publish:
type: boolean
default: false
description: Publish built image
workflow_call:
inputs:
publish:
type: boolean
default: true
description: Publish built image

jobs:
fedora:
Expand Down Expand Up @@ -90,7 +87,7 @@ jobs:

- name: Upload image
uses: ./.github/actions/image-upload
if: inputs.publish == true
if: github.event_name == 'schedule' || inputs.publish == true
with:
target: ${{ env.target }}
image_dir: "${{ env.distro }}/${{ matrix.release }}/${{ matrix.architecture }}/${{ matrix.variant }}"
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/image-funtoo.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
name: Build Funtoo Images

on:
schedule:
# Run at 00:00 UTC daily.
- cron: '0 0 * * *'
workflow_dispatch:
inputs:
publish:
type: boolean
default: false
description: Publish built image
workflow_call:
inputs:
publish:
type: boolean
default: true
description: Publish built image

jobs:
funtoo:
Expand Down Expand Up @@ -81,7 +78,7 @@ jobs:

- name: Upload image
uses: ./.github/actions/image-upload
if: inputs.publish == true
if: github.event_name == 'schedule' || inputs.publish == true
with:
target: ${{ env.target }}
image_dir: "${{ env.distro }}/${{ matrix.release }}/${{ matrix.architecture }}/${{ matrix.variant }}"
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/image-gentoo.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
name: Build Gentoo Images

on:
schedule:
# Run at 00:00 UTC daily.
- cron: '0 0 * * *'
workflow_dispatch:
inputs:
publish:
type: boolean
default: false
description: Publish built image
workflow_call:
inputs:
publish:
type: boolean
default: true
description: Publish built image

jobs:
gentoo:
Expand Down Expand Up @@ -85,7 +82,7 @@ jobs:

- name: Upload image
uses: ./.github/actions/image-upload
if: inputs.publish == true
if: github.event_name == 'schedule' || inputs.publish == true
with:
target: ${{ env.target }}
image_dir: "${{ env.distro }}/${{ matrix.release }}/${{ matrix.architecture }}/${{ matrix.variant }}"
Expand Down
Loading

0 comments on commit 5b74e34

Please sign in to comment.