Oooh #3
This file contains 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: rpi-kernel | |
on: | |
push: | |
branches: [ 'main', 'release-*' ] | |
tags: | |
- "v*" | |
jobs: | |
sbc: | |
runs-on: buildjet-16vcpu-ubuntu-2204-arm | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Lowercase repository owner | |
shell: bash | |
run: echo "LOWERCASE_REPO_OWNER=${GITHUB_REPOSITORY_OWNER,,}" >> $GITHUB_ENV | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
# need history for `git describe` to work for Talos `Makefile` | |
fetch-depth: 0 | |
fetch-tags: true | |
- uses: docker/setup-buildx-action@v3 | |
with: | |
buildkitd-config: .github/buildkitd.toml | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push rpi kernel image | |
run: make | |
env: | |
PUSH: '1' | |
USERNAME: ${LOWERCASE_REPO_OWNER} | |
PLATFORM: linux/arm64 | |
PROGRESS: plain | |
CI_ARGS: "--cache-from=ghcr.io/${LOWERCASE_REPO_OWNER}/rpi-talos-kernel:cache --cache-to=ghcr.io/${LOWERCASE_REPO_OWNER}/rpi-talos-kernel:cache" |