Build T480s atomic #155
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build T480s atomic | |
| on: | |
| schedule: | |
| - cron: | |
| "00 08 * * 2,4,6" # build at 08 UTC T/T/S | |
| push: | |
| paths: | |
| - "recipes/kinoite.yml" | |
| - "recipes/silverblue.yml" | |
| pull_request: | |
| workflow_dispatch: # allow manually triggering builds | |
| concurrency: | |
| # only run one build at a time | |
| group: ${{ github.workflow }}-${{ github.ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| bluebuild: | |
| name: Build T480s atomic | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| id-token: write | |
| strategy: | |
| fail-fast: false # stop GH from cancelling all matrix builds if one fails | |
| matrix: | |
| recipe: | |
| # !! Add your recipes here | |
| - kinoite.yml | |
| - silverblue.yml | |
| steps: | |
| - name: Optimize build times | |
| shell: bash | |
| run: | | |
| echo 'set man-db/auto-update false' | sudo debconf-communicate | |
| sudo dpkg-reconfigure man-db | |
| sudo rm -f /var/lib/man-db/auto-update | |
| sudo sed -i 's/^update_initramfs=.*/update_initramfs=no/' /etc/initramfs-tools/update-initramfs.conf | |
| - name: Free disk space | |
| shell: bash | |
| run: | | |
| sudo rm -rf /usr/share/dotnet || true | |
| sudo rm -rf /opt/ghc || true | |
| sudo rm -rf /usr/local/.ghcup || true | |
| sudo docker image prune --all --force || true | |
| sudo swapoff -a || true | |
| sudo rm -f /mnt/swapfile || true | |
| # the build is fully handled by the reusable github action | |
| - name: Build Custom Image | |
| uses: blue-build/github-action@v1.10 | |
| with: | |
| recipe: ${{ matrix.recipe }} | |
| rechunk: true | |
| cosign_private_key: ${{ secrets.SIGNING_SECRET }} | |
| registry_token: ${{ github.token }} | |
| pr_event_number: ${{ github.event.number }} | |
| # enabled by default, disable if your image is small and you want faster builds | |
| maximize_build_space: false |