Skip to content

Commit

Permalink
Cleanup unused images (#349)
Browse files Browse the repository at this point in the history
With @simondeziel we have checked the metrics for images, and this PR
drops builds for unused images, especially focusing on distributions
that are very *heavy* to build, such as Funtoo, and openEuler.

This removes builds for:
- Devuano (arm64 only)
- Gentoo (arm64 only)
- Funtoo (arm64 only)
- openEuler 22.03 (all)
- openEuler 24.03 (arm64 only)
- Oracle 8 (arm64 only)
- ALT p10 (all)
  • Loading branch information
tomponline authored Nov 14, 2024
2 parents fe45a14 + cdc6c08 commit 4c761a6
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 30 deletions.
1 change: 0 additions & 1 deletion .github/workflows/image-alt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ jobs:
release:
- Sisyphus
- p11
- p10
variant:
- default
- cloud
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/image-devuan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,17 @@ name: Build Devuan Images
on:
schedule:
- cron: '0 0 * * *' # Build amd64 (Daily at 00:00 UTC).
- cron: '0 0 * * 1' # Build arm64 (Weekly on Monday at 00:00 UTC).
workflow_dispatch:
inputs:
publish:
type: boolean
default: false
description: Publish built image
build-arm64:
type: boolean
default: false
description: Build arm64 images

jobs:
devuan:
if: github.event_name != 'schedule' || github.repository == 'canonical/lxd-ci'
runs-on: ${{ matrix.architecture == 'arm64' && 'Ubuntu_ARM64_4C_16G_01' || 'ubuntu-latest' }}
runs-on: 'ubuntu-latest'
strategy:
fail-fast: false
matrix:
Expand All @@ -29,7 +24,7 @@ jobs:
- default
- cloud
architecture:
- ${{ (inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1') && 'arm64' ||'amd64' }}
- 'amd64'
env:
type: "container"
distro: "${{ github.job }}"
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/image-funtoo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,17 @@ name: Build Funtoo Images
on:
schedule:
- cron: '0 0 * * *' # Build amd64 (Daily at 00:00 UTC).
- cron: '0 0 * * 1' # Build arm64 (Weekly on Monday at 00:00 UTC).
workflow_dispatch:
inputs:
publish:
type: boolean
default: false
description: Publish built image
build-arm64:
type: boolean
default: false
description: Build arm64 images

jobs:
funtoo:
if: github.event_name != 'schedule' || github.repository == 'canonical/lxd-ci'
runs-on: ${{ matrix.architecture == 'arm64' && 'Ubuntu_ARM64_4C_16G_01' || 'ubuntu-latest' }}
runs-on: 'ubuntu-latest'
strategy:
fail-fast: false
matrix:
Expand All @@ -27,7 +22,7 @@ jobs:
variant:
- default
architecture:
- ${{ (inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1') && 'arm64' ||'amd64' }}
- 'amd64'
env:
type: "container"
distro: "${{ github.job }}"
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/image-gentoo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,17 @@ name: Build Gentoo Images
on:
schedule:
- cron: '0 0 * * *' # Build amd64 (Daily at 00:00 UTC).
- cron: '0 0 * * 1' # Build arm64 (Weekly on Monday at 00:00 UTC).
workflow_dispatch:
inputs:
publish:
type: boolean
default: false
description: Publish built image
build-arm64:
type: boolean
default: false
description: Build arm64 images

jobs:
gentoo:
if: github.event_name != 'schedule' || github.repository == 'canonical/lxd-ci'
runs-on: ${{ matrix.architecture == 'arm64' && 'Ubuntu_ARM64_4C_16G_01' || 'ubuntu-latest' }}
runs-on: 'ubuntu-latest'
strategy:
fail-fast: false
matrix:
Expand All @@ -28,7 +23,7 @@ jobs:
- openrc
- systemd
architecture:
- ${{ (inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1') && 'arm64' ||'amd64' }}
- 'amd64'
env:
type: "container"
distro: "${{ github.job }}"
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/image-openeuler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,27 @@ name: Build openEuler Images
on:
schedule:
- cron: '0 0 * * *' # Build amd64 (Daily at 00:00 UTC).
- cron: '0 0 * * 1' # Build arm64 (Weekly on Monday at 00:00 UTC).
workflow_dispatch:
inputs:
publish:
type: boolean
default: false
description: Publish built image
build-arm64:
type: boolean
default: false
description: Build arm64 images

jobs:
openeuler:
if: github.event_name != 'schedule' || github.repository == 'canonical/lxd-ci'
runs-on: ${{ matrix.architecture == 'arm64' && 'Ubuntu_ARM64_4C_16G_01' || 'ubuntu-latest' }}
runs-on: 'ubuntu-latest'
strategy:
fail-fast: false
matrix:
release:
- 22.03
- 24.03
variant:
- default
- cloud
architecture:
- ${{ (inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1') && 'arm64' ||'amd64' }}
- 'amd64'
env:
type: "container"
distro: "${{ github.job }}"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/image-oracle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
- ${{ (inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1') && 'arm64' ||'amd64' }}
exclude:
- {architecture: arm64, release: 7}
- {architecture: arm64, release: 8}
env:
type: "container"
distro: "${{ github.job }}"
Expand Down

0 comments on commit 4c761a6

Please sign in to comment.