Skip to content

Commit

Permalink
Merge branch 'master' into rpi3
Browse files Browse the repository at this point in the history
  • Loading branch information
Ludea authored Oct 12, 2023
2 parents 511a559 + 750b0d1 commit 10cbb43
Show file tree
Hide file tree
Showing 62 changed files with 694 additions and 286 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ jobs:
# https://askubuntu.com/a/1081326
sudo setfacl -m u:runner:rwx /dev/kvm
- name: Install earthly
uses: jimmykarily/luet-install-action@v1.2
uses: Luet-lab/luet-install-action@v1.1
with:
repository: quay.io/kairos/packages
packages: utils/earthly
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/release-arm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,15 @@ jobs:
- name: Install Cosign
uses: sigstore/cosign-installer@main
- name: Install earthly
uses: jimmykarily/luet-install-action@v1.2
uses: Luet-lab/luet-install-action@v1.1
with:
repository: quay.io/kairos/packages
packages: utils/earthly
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@master
- name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
Expand Down Expand Up @@ -221,15 +221,15 @@ jobs:
- name: Install Cosign
uses: sigstore/cosign-installer@main
- name: Install earthly
uses: jimmykarily/luet-install-action@v1.2
uses: Luet-lab/luet-install-action@v1.1
with:
repository: quay.io/kairos/packages
packages: utils/earthly
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@master
- name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
Expand Down Expand Up @@ -293,7 +293,7 @@ jobs:
with:
fetch-depth: 0
- name: Install earthly
uses: jimmykarily/luet-install-action@v1.2
uses: Luet-lab/luet-install-action@v1.1
with:
repository: quay.io/kairos/packages
packages: utils/earthly
Expand All @@ -303,7 +303,7 @@ jobs:
platforms: all
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Login to Quay Registry
run: echo ${{ secrets.QUAY_PASSWORD }} | docker login -u ${{ secrets.QUAY_USERNAME }} --password-stdin quay.io
- name: Build iso 🔧
Expand Down Expand Up @@ -333,7 +333,7 @@ jobs:
with:
fetch-depth: 0
- name: Install earthly
uses: jimmykarily/luet-install-action@v1.2
uses: Luet-lab/luet-install-action@v1.1
with:
repository: quay.io/kairos/packages
packages: utils/earthly
Expand All @@ -343,7 +343,7 @@ jobs:
platforms: all
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Login to Quay Registry
run: echo ${{ secrets.QUAY_PASSWORD }} | docker login -u ${{ secrets.QUAY_USERNAME }} --password-stdin quay.io
- name: Build iso 🔧
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
- name: Install Cosign
uses: sigstore/cosign-installer@main
- name: Install earthly
uses: jimmykarily/luet-install-action@v1.2
uses: Luet-lab/luet-install-action@v1.1
with:
repository: quay.io/kairos/packages
packages: utils/earthly
Expand Down Expand Up @@ -176,7 +176,7 @@ jobs:
- name: Login to Quay Registry
run: echo ${{ secrets.QUAY_PASSWORD }} | docker login -u ${{ secrets.QUAY_USERNAME }} --password-stdin quay.io
- name: Install earthly
uses: jimmykarily/luet-install-action@v1.2
uses: Luet-lab/luet-install-action@v1.1
with:
repository: quay.io/kairos/packages
packages: utils/earthly
Expand Down Expand Up @@ -238,7 +238,7 @@ jobs:
with:
fetch-depth: 0
- name: Install earthly
uses: jimmykarily/luet-install-action@v1.2
uses: Luet-lab/luet-install-action@v1.1
with:
repository: quay.io/kairos/packages
packages: utils/earthly
Expand Down Expand Up @@ -276,7 +276,7 @@ jobs:
sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android
sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET
- name: Install earthly
uses: jimmykarily/luet-install-action@v1.2
uses: Luet-lab/luet-install-action@v1.1
with:
repository: quay.io/kairos/packages
packages: utils/earthly
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable-build-flavor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
run: echo ${{ secrets.QUAY_PASSWORD }} | docker login -u ${{ secrets.QUAY_USERNAME }} --password-stdin quay.io
- name: Install earthly
uses: jimmykarily/luet-install-action@v1.2
uses: Luet-lab/luet-install-action@v1.1
with:
repository: quay.io/kairos/packages
packages: utils/earthly
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable-build-framework-flavor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Login to Quay Registry
run: echo ${{ secrets.QUAY_PASSWORD }} | docker login -u ${{ secrets.QUAY_USERNAME }} --password-stdin quay.io
- name: Install earthly
uses: jimmykarily/luet-install-action@v1.2
uses: Luet-lab/luet-install-action@v1.1
with:
repository: quay.io/kairos/packages
packages: utils/earthly
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable-build-provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
- run: |
git fetch --prune --unshallow
- name: Install earthly
uses: jimmykarily/luet-install-action@v1.2
uses: Luet-lab/luet-install-action@v1.1
with:
repository: quay.io/kairos/packages
packages: utils/earthly
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/reusable-docker-arm-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
id: buildx
uses: docker/setup-buildx-action@master
- name: Install earthly
uses: jimmykarily/luet-install-action@v1.2
uses: Luet-lab/luet-install-action@v1.1
with:
repository: quay.io/kairos/packages
packages: utils/earthly
Expand Down Expand Up @@ -143,7 +143,7 @@ jobs:
# in-toto attestation
cosign attest --type spdx --predicate $spdx $image_ref
- name: Upload results
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && inputs.flavor != 'ubuntu-20-lts-arm-nvidia-jetson-agx-orin' }}
uses: actions/upload-artifact@v3
with:
name: ${{ inputs.flavor }}-image
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/reusable-image-and-iso-arm-generic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
- name: Install earthly
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
uses: jimmykarily/luet-install-action@v1.2
uses: Luet-lab/luet-install-action@v1.1
with:
repository: quay.io/kairos/packages
packages: utils/earthly
Expand All @@ -27,7 +27,7 @@ jobs:
- name: Set up Docker Buildx
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
id: buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Login to Quay Registry
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
run: echo ${{ secrets.QUAY_PASSWORD }} | docker login -u ${{ secrets.QUAY_USERNAME }} --password-stdin quay.io
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable-provider-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
# https://askubuntu.com/a/1081326
sudo setfacl -m u:runner:rwx /dev/kvm
- name: Install earthly
uses: jimmykarily/luet-install-action@v1.2
uses: Luet-lab/luet-install-action@v1.1
with:
repository: quay.io/kairos/packages
packages: utils/earthly
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
# https://askubuntu.com/a/1081326
sudo setfacl -m u:runner:rwx /dev/kvm
- name: Install earthly
uses: jimmykarily/luet-install-action@v1.2
uses: Luet-lab/luet-install-action@v1.1
with:
repository: quay.io/kairos/packages
packages: utils/earthly
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable-qemu-acceptance-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
- name: Display structure of downloaded files
run: ls -las .
- name: Install earthly
uses: jimmykarily/luet-install-action@v1.2
uses: Luet-lab/luet-install-action@v1.1
with:
repository: quay.io/kairos/packages
packages: utils/earthly
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable-qemu-bundles-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Display structure of downloaded files
run: ls -las .
- name: Install earthly
uses: jimmykarily/luet-install-action@v1.2
uses: Luet-lab/luet-install-action@v1.1
with:
repository: quay.io/kairos/packages
packages: utils/earthly
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable-qemu-netboot-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
- run: |
git fetch --prune --unshallow
- name: Install earthly
uses: jimmykarily/luet-install-action@v1.2
uses: Luet-lab/luet-install-action@v1.1
with:
repository: quay.io/kairos/packages
packages: utils/earthly
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable-qemu-reset-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Display structure of downloaded files
run: ls -las .
- name: Install earthly
uses: jimmykarily/luet-install-action@v1.2
uses: Luet-lab/luet-install-action@v1.1
with:
repository: quay.io/kairos/packages
packages: utils/earthly
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable-upgrade-latest-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
- name: Display structure of downloaded files
run: ls -las .
- name: Install earthly
uses: jimmykarily/luet-install-action@v1.2
uses: Luet-lab/luet-install-action@v1.1
with:
repository: quay.io/kairos/packages
packages: utils/earthly
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable-upgrade-with-cli-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
sudo rm -rfv build || true
df -h
- name: Install earthly
uses: jimmykarily/luet-install-action@v1.2
uses: Luet-lab/luet-install-action@v1.1
with:
repository: quay.io/kairos/packages
packages: utils/earthly
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable-zfs-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Display structure of downloaded files
run: ls -R
- name: Install earthly
uses: jimmykarily/luet-install-action@v1.2
uses: Luet-lab/luet-install-action@v1.1
with:
repository: quay.io/kairos/packages
packages: utils/earthly
Expand Down
60 changes: 60 additions & 0 deletions .github/workflows/uki.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: UKI tests
on:
pull_request:

concurrency:
group: ci-uki-${{ github.head_ref || github.ref }}-${{ github.repository }}
cancel-in-progress: true
env:
FORCE_COLOR: 1
jobs:
test-uki:
runs-on: kvm
steps:
- uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v4
with:
go-version-file: tests/go.mod
cache-dependency-path: tests/go.sum
- name: Enable KVM group perms
run: |
sudo apt-get update
sudo apt-get install -y libvirt-clients libvirt-daemon-system libvirt-daemon virtinst bridge-utils qemu qemu-system-x86 qemu-system-x86 qemu-utils qemu-kvm acl udev
# https://github.blog/changelog/2023-02-23-hardware-accelerated-android-virtualization-on-actions-windows-and-linux-larger-hosted-runners/
# echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
# sudo udevadm control --reload-rules
# sudo udevadm trigger --name-match=kvm
# sudo usermod -a -G kvm,libvirt $USER
#
# TODO: Switch back to the above solution when we switch to the github runners
# https://askubuntu.com/a/1081326
sudo setfacl -m u:runner:rwx /dev/kvm
- name: Install earthly
uses: Luet-lab/[email protected]
with:
repository: quay.io/kairos/packages
packages: utils/earthly
- name: Build uki ISO 🔧
run: |
# Do fedora as its the smaller uki possible
# Use immmucore master as it has patches not released for uki
# Use kairos-agent main branch as it has patches not released for uki
earthly +iso-uki --FLAVOR=opensuse-leap --KAIROS_AGENT_DEV=true --KAIROS_AGENT_DEV_BRANCH=main --IMMUCORE_DEV=true --IMMUCORE_DEV_BRANCH=master
- name: Run tests
env:
USE_QEMU: true
KVM: true
MEMORY: 4000
CPUS: 2
FIRMWARE: /usr/share/OVMF/OVMF_CODE.fd
run: |
export ISO=$(ls $PWD/build/kairos-core-*opensuse-leap*.iso)
cp tests/go.* .
go run github.com/onsi/ginkgo/v2/ginkgo -v --label-filter "uki" --fail-fast -r ./tests/
- uses: actions/upload-artifact@v3
if: failure()
with:
name: ${{ inputs.flavor }}.logs.zip
path: tests/**/logs/*
if-no-files-found: warn
Loading

0 comments on commit 10cbb43

Please sign in to comment.