Skip to content

Commit

Permalink
Merge pull request canonical#161 from MusicDin/images/exclude
Browse files Browse the repository at this point in the history
images: Determine image architecture based on a schedule
  • Loading branch information
tomponline authored Apr 24, 2024
2 parents 6b9c051 + 48fb4de commit b6844f0
Show file tree
Hide file tree
Showing 19 changed files with 19 additions and 128 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/image-almalinux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,7 @@ jobs:
- default
- cloud
architecture:
- amd64
- arm64
build_arm64:
- ${{ inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1' }}
exclude:
- {architecture: amd64, build_arm64: true}
- {architecture: arm64, build_arm64: false}
- ${{ (inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1') && 'arm64' ||'amd64' }}
env:
type: "container"
distro: "${{ github.job }}"
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/image-alt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,7 @@ jobs:
- default
- cloud
architecture:
- amd64
- arm64
build_arm64:
- ${{ inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1' }}
exclude:
- {architecture: amd64, build_arm64: true}
- {architecture: arm64, build_arm64: false}
- ${{ (inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1') && 'arm64' ||'amd64' }}
env:
type: "container"
distro: "${{ github.job }}"
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/image-amazonlinux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,8 @@ jobs:
variant:
- default
architecture:
- amd64
- arm64
build_arm64:
- ${{ inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1' }}
- ${{ (inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1') && 'arm64' ||'amd64' }}
exclude:
- {architecture: amd64, build_arm64: true}
- {architecture: arm64, build_arm64: false}
- {architecture: arm64, release: 2}
env:
type: "container"
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/image-archlinux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,8 @@ jobs:
- cloud
- desktop-gnome
architecture:
- amd64
- arm64
build_arm64:
- ${{ inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1' }}
- ${{ (inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1') && 'arm64' ||'amd64' }}
exclude:
- {architecture: amd64, build_arm64: true}
- {architecture: arm64, build_arm64: false}
- {architecture: arm64, variant: cloud}
- {architecture: arm64, variant: desktop-gnome}
env:
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/image-busybox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,7 @@ jobs:
variant:
- default
architecture:
- amd64
- arm64
build_arm64:
- ${{ inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1' }}
exclude:
- {architecture: amd64, build_arm64: true}
- {architecture: arm64, build_arm64: false}
- ${{ (inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1') && 'arm64' ||'amd64' }}
env:
type: "container"
distro: "${{ github.job }}"
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/image-centos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,8 @@ jobs:
- default
- cloud
architecture:
- amd64
- arm64
build_arm64:
- ${{ inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1' }}
- ${{ (inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1') && 'arm64' ||'amd64' }}
exclude:
- {architecture: amd64, build_arm64: true}
- {architecture: arm64, build_arm64: false}
- {architecture: arm64, release: 7}
env:
type: "container"
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/image-debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,7 @@ jobs:
- default
- cloud
architecture:
- amd64
- arm64
build_arm64:
- ${{ inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1' }}
exclude:
- {architecture: amd64, build_arm64: true}
- {architecture: arm64, build_arm64: false}
- ${{ (inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1') && 'arm64' ||'amd64' }}
env:
type: "container"
distro: "${{ github.job }}"
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/image-devuan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,7 @@ jobs:
- default
- cloud
architecture:
- amd64
- arm64
build_arm64:
- ${{ inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1' }}
exclude:
- {architecture: amd64, build_arm64: true}
- {architecture: arm64, build_arm64: false}
- ${{ (inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1') && 'arm64' ||'amd64' }}
env:
type: "container"
distro: "${{ github.job }}"
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/image-fedora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,7 @@ jobs:
- default
- cloud
architecture:
- amd64
- arm64
build_arm64:
- ${{ inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1' }}
exclude:
- {architecture: amd64, build_arm64: true}
- {architecture: arm64, build_arm64: false}
- ${{ (inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1') && 'arm64' ||'amd64' }}
env:
type: "container"
distro: "${{ github.job }}"
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/image-funtoo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,7 @@ jobs:
variant:
- default
architecture:
- amd64
- arm64
build_arm64:
- ${{ inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1' }}
exclude:
- {architecture: amd64, build_arm64: true}
- {architecture: arm64, build_arm64: false}
- ${{ (inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1') && 'arm64' ||'amd64' }}
env:
type: "container"
distro: "${{ github.job }}"
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/image-gentoo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,7 @@ jobs:
- openrc
- systemd
architecture:
- amd64
- arm64
build_arm64:
- ${{ inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1' }}
exclude:
- {architecture: amd64, build_arm64: true}
- {architecture: arm64, build_arm64: false}
- ${{ (inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1') && 'arm64' ||'amd64' }}
env:
type: "container"
distro: "${{ github.job }}"
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/image-kali.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,7 @@ jobs:
- default
- cloud
architecture:
- amd64
- arm64
build_arm64:
- ${{ inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1' }}
exclude:
- {architecture: amd64, build_arm64: true}
- {architecture: arm64, build_arm64: false}
- ${{ (inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1') && 'arm64' ||'amd64' }}
env:
type: "container"
distro: "${{ github.job }}"
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/image-nixos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,7 @@ jobs:
variant:
- default
architecture:
- amd64
- arm64
build_arm64:
- ${{ inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1' }}
exclude:
- {architecture: amd64, build_arm64: true}
- {architecture: arm64, build_arm64: false}
- ${{ (inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1') && 'arm64' ||'amd64' }}
env:
type: "container"
distro: "${{ github.job }}"
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/image-openeuler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,7 @@ jobs:
- default
- cloud
architecture:
- amd64
- arm64
build_arm64:
- ${{ inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1' }}
exclude:
- {architecture: amd64, build_arm64: true}
- {architecture: arm64, build_arm64: false}
- ${{ (inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1') && 'arm64' ||'amd64' }}
env:
type: "container"
distro: "${{ github.job }}"
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/image-opensuse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,8 @@ jobs:
- cloud
- desktop-kde
architecture:
- amd64
- arm64
build_arm64:
- ${{ inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1' }}
- ${{ (inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1') && 'arm64' ||'amd64' }}
exclude:
- {architecture: amd64, build_arm64: true}
- {architecture: arm64, build_arm64: false}
- {architecture: arm64, variant: desktop-kde}
- {release: 15.5, variant: cloud}
env:
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/image-openwrt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,7 @@ jobs:
variant:
- default
architecture:
- amd64
- arm64
build_arm64:
- ${{ inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1' }}
exclude:
- {architecture: amd64, build_arm64: true}
- {architecture: arm64, build_arm64: false}
- ${{ (inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1') && 'arm64' ||'amd64' }}
env:
type: "container"
distro: "${{ github.job }}"
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/image-oracle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,8 @@ jobs:
- default
- cloud
architecture:
- amd64
- arm64
build_arm64:
- ${{ inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1' }}
- ${{ (inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1') && 'arm64' ||'amd64' }}
exclude:
- {architecture: amd64, build_arm64: true}
- {architecture: arm64, build_arm64: false}
- {architecture: arm64, release: 7}
env:
type: "container"
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/image-rockylinux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,7 @@ jobs:
- default
- cloud
architecture:
- amd64
- arm64
build_arm64:
- ${{ inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1' }}
exclude:
- {architecture: amd64, build_arm64: true}
- {architecture: arm64, build_arm64: false}
- ${{ (inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1') && 'arm64' ||'amd64' }}}
env:
type: "container"
distro: "${{ github.job }}"
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/image-voidlinux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,7 @@ jobs:
variant:
- default
architecture:
- amd64
- arm64
build_arm64:
- ${{ inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1' }}
exclude:
- {architecture: amd64, build_arm64: true}
- {architecture: arm64, build_arm64: false}
- ${{ (inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1') && 'arm64' ||'amd64' }}
env:
type: "container"
distro: "${{ github.job }}"
Expand Down

0 comments on commit b6844f0

Please sign in to comment.