Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

disable cgroupv2

disable cgroupv2 #51

Workflow file for this run

name: Talos Images
on:
workflow_dispatch:
inputs:
build_emmc_image:
description: 'Build flashable eMMC image'
required: true
default: false
type: boolean
push:
branches: [ 'main', 'release-*' ]
tags:
- "v*"
env:
# REGISTRY is used by Talos makefile targets
REGISTRY: docker.io
# USERNAME is used by Talos makefile targets
USERNAME: milas
jobs:
talos-installer-image:
runs-on: ubuntu-22.04
permissions:
contents: read
packages: none
strategy:
matrix:
board: [rock-5a, rock-5b]
steps:
- uses: docker/setup-buildx-action@v2
- uses: docker/setup-qemu-action@v2
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
# ^^^ populated from mandatory vars for Talos makefile
# just done to keep in sync, not for flexibility
registry: ${{ env.REGISTRY }}
username: ${{ env.USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Checkout
uses: actions/checkout@v3
with:
# need history for `git describe` to work for Talos `Makefile`
fetch-depth: 0
- name: Build and push Talos installer image
run: make installer
env:
PUSH: '1'
IMAGE_NAME: rock5-talos
ROCK5_BOARD: ${{ matrix.board }}
PLATFORM: linux/arm64
PROGRESS: plain
talos-emmc-image:
runs-on: ubuntu-22.04
needs: talos-installer-image
if: startsWith(github.ref, 'refs/tags/') || inputs.build_emmc_image
permissions:
contents: read
packages: write
strategy:
matrix:
board: [rock-5a, rock-5b]
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ env.USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- uses: actions/checkout@v3
- name: Build Flashable Image for Rock 5B
run: |
BOARD=${{ matrix.board }}
BOARD="${BOARD/-/_}"
mkdir -p _out/
make "sbc-${BOARD}"
env:
IMAGE_NAME: rock5-talos
IMAGE_TAG: ${{ github.ref_name }}-${{ matrix.board }}
ROCK5_BOARD: ${{ matrix.board }}
- uses: actions/upload-artifact@v3
with:
name: image-${{ matrix.board }}
path: _out/*.img.xz
if-no-files-found: error
release:
runs-on: ubuntu-22.04
needs: talos-emmc-image
permissions:
contents: write
packages: none
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/download-artifact@v3
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
fail_on_unmatched_files: true
files: 'image-*/*.img.xz'
generate_release_notes: true