mirror of
https://github.com/kairos-io/kairos.git
synced 2025-02-09 05:18:51 +00:00
Switch to self-hosted runner (#1780)
* Switch to self-hosted runner Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me> * Use luet-install-action fork to get this fix until it's merged: https://github.com/Luet-lab/luet-install-action/pull/1/files Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me> * Partly revert Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me> * Bump action Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me> --------- Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
This commit is contained in:
parent
f0f35f182a
commit
980e0e98cd
2
.github/workflows/image.yaml
vendored
2
.github/workflows/image.yaml
vendored
@ -259,7 +259,7 @@ jobs:
|
|||||||
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
|
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
|
||||||
sudo usermod -a -G kvm,libvirt $USER
|
sudo usermod -a -G kvm,libvirt $USER
|
||||||
- name: Install earthly
|
- name: Install earthly
|
||||||
uses: Luet-lab/luet-install-action@v1
|
uses: jimmykarily/luet-install-action@v1.2
|
||||||
with:
|
with:
|
||||||
repository: quay.io/kairos/packages
|
repository: quay.io/kairos/packages
|
||||||
packages: utils/earthly
|
packages: utils/earthly
|
||||||
|
48
.github/workflows/release-arm.yaml
vendored
48
.github/workflows/release-arm.yaml
vendored
@ -105,7 +105,7 @@ jobs:
|
|||||||
- name: Install Cosign
|
- name: Install Cosign
|
||||||
uses: sigstore/cosign-installer@main
|
uses: sigstore/cosign-installer@main
|
||||||
- name: Install earthly
|
- name: Install earthly
|
||||||
uses: Luet-lab/luet-install-action@v1
|
uses: jimmykarily/luet-install-action@v1.2
|
||||||
with:
|
with:
|
||||||
repository: quay.io/kairos/packages
|
repository: quay.io/kairos/packages
|
||||||
packages: utils/earthly
|
packages: utils/earthly
|
||||||
@ -118,26 +118,9 @@ jobs:
|
|||||||
registry: quay.io
|
registry: quay.io
|
||||||
username: ${{ secrets.QUAY_USERNAME }}
|
username: ${{ secrets.QUAY_USERNAME }}
|
||||||
password: ${{ secrets.QUAY_PASSWORD }}
|
password: ${{ secrets.QUAY_PASSWORD }}
|
||||||
- name: Shared runner build 🔧
|
- name: Build 🔧
|
||||||
if: ${{ matrix.worker != 'kvm' }}
|
|
||||||
run: |
|
run: |
|
||||||
earthly -P +all-arm -VARIANT=core -MODEL=${{ matrix.model }} -FLAVOR=${{ matrix.flavor }}
|
earthly -P +all-arm -VARIANT=core -MODEL=${{ matrix.model }} -FLAVOR=${{ matrix.flavor }}
|
||||||
- name: Self-hosted runner Build 🔧
|
|
||||||
if: ${{ matrix.worker == 'kvm' }}
|
|
||||||
run: |
|
|
||||||
# Configure earthly to use the docker mirror in CI
|
|
||||||
# https://docs.earthly.dev/ci-integration/pull-through-cache#configuring-earthly-to-use-the-cache
|
|
||||||
mkdir -p ~/.earthly/
|
|
||||||
cat << EOF > ~/.earthly/config.yml
|
|
||||||
global:
|
|
||||||
buildkit_additional_config: |
|
|
||||||
[registry."docker.io"]
|
|
||||||
mirrors = ["registry.docker-mirror.svc.cluster.local:5000"]
|
|
||||||
[registry."registry.docker-mirror.svc.cluster.local:5000"]
|
|
||||||
insecure = true
|
|
||||||
http = true
|
|
||||||
EOF
|
|
||||||
docker run --privileged -v $HOME/.earthly/config.yml:/etc/.earthly/config.yml -v /var/run/docker.sock:/var/run/docker.sock --rm --env EARTHLY_BUILD_ARGS -t -v "$(pwd)":/workspace -v earthly-tmp:/tmp/earthly:rw earthly/earthly:v0.7.5 --allow-privileged +all-arm -VARIANT=core --MODEL=${{ matrix.model }} --FLAVOR=${{ matrix.flavor }}
|
|
||||||
- name: Convert all json files into a reports.tar.gz file
|
- name: Convert all json files into a reports.tar.gz file
|
||||||
run: |
|
run: |
|
||||||
export VERSION=$(cat build/VERSION)
|
export VERSION=$(cat build/VERSION)
|
||||||
@ -238,7 +221,7 @@ jobs:
|
|||||||
- name: Install Cosign
|
- name: Install Cosign
|
||||||
uses: sigstore/cosign-installer@main
|
uses: sigstore/cosign-installer@main
|
||||||
- name: Install earthly
|
- name: Install earthly
|
||||||
uses: Luet-lab/luet-install-action@v1
|
uses: jimmykarily/luet-install-action@v1.2
|
||||||
with:
|
with:
|
||||||
repository: quay.io/kairos/packages
|
repository: quay.io/kairos/packages
|
||||||
packages: utils/earthly
|
packages: utils/earthly
|
||||||
@ -251,28 +234,9 @@ jobs:
|
|||||||
registry: quay.io
|
registry: quay.io
|
||||||
username: ${{ secrets.QUAY_USERNAME }}
|
username: ${{ secrets.QUAY_USERNAME }}
|
||||||
password: ${{ secrets.QUAY_PASSWORD }}
|
password: ${{ secrets.QUAY_PASSWORD }}
|
||||||
- name: Shared runner build 🔧
|
- name: Build 🔧
|
||||||
if: ${{ matrix.worker != 'kvm' }}
|
|
||||||
run: |
|
run: |
|
||||||
earthly -P +all-arm -VARIANT=standard -MODEL=${{ matrix.model }} -K3S_VERSION=${{ matrix.k3s_version }} -FLAVOR=${{ matrix.flavor }}
|
earthly -P +all-arm -VARIANT=standard -MODEL=${{ matrix.model }} -K3S_VERSION=${{ matrix.k3s_version }} -FLAVOR=${{ matrix.flavor }}
|
||||||
- name: Self-hosted runner Build 🔧
|
|
||||||
if: ${{ matrix.worker == 'kvm' }}
|
|
||||||
run: |
|
|
||||||
# Configure earthly to use the docker mirror in CI
|
|
||||||
# https://docs.earthly.dev/ci-integration/pull-through-cache#configuring-earthly-to-use-the-cache
|
|
||||||
mkdir -p ~/.earthly/
|
|
||||||
cat << EOF > ~/.earthly/config.yml
|
|
||||||
global:
|
|
||||||
buildkit_additional_config: |
|
|
||||||
[registry."docker.io"]
|
|
||||||
mirrors = ["registry.docker-mirror.svc.cluster.local:5000"]
|
|
||||||
[registry."registry.docker-mirror.svc.cluster.local:5000"]
|
|
||||||
insecure = true
|
|
||||||
http = true
|
|
||||||
EOF
|
|
||||||
|
|
||||||
docker run --privileged -v $HOME/.earthly/config.yml:/etc/.earthly/config.yml -v /var/run/docker.sock:/var/run/docker.sock --rm --env EARTHLY_BUILD_ARGS -t -v "$(pwd)":/workspace -v earthly-tmp:/tmp/earthly:rw earthly/earthly:v0.7.5 --allow-privileged +all-arm -VARIANT=standard -K3S_VERSION=${{ matrix.k3s_version }} --MODEL=${{ matrix.model }} --FLAVOR=${{ matrix.flavor }}
|
|
||||||
|
|
||||||
- name: Convert all json files into a reports.tar.gz file
|
- name: Convert all json files into a reports.tar.gz file
|
||||||
run: |
|
run: |
|
||||||
export VERSION=$(cat build/VERSION)
|
export VERSION=$(cat build/VERSION)
|
||||||
@ -329,7 +293,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Install earthly
|
- name: Install earthly
|
||||||
uses: Luet-lab/luet-install-action@v1
|
uses: jimmykarily/luet-install-action@v1.2
|
||||||
with:
|
with:
|
||||||
repository: quay.io/kairos/packages
|
repository: quay.io/kairos/packages
|
||||||
packages: utils/earthly
|
packages: utils/earthly
|
||||||
@ -369,7 +333,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Install earthly
|
- name: Install earthly
|
||||||
uses: Luet-lab/luet-install-action@v1
|
uses: jimmykarily/luet-install-action@v1.2
|
||||||
with:
|
with:
|
||||||
repository: quay.io/kairos/packages
|
repository: quay.io/kairos/packages
|
||||||
packages: utils/earthly
|
packages: utils/earthly
|
||||||
|
8
.github/workflows/release.yaml
vendored
8
.github/workflows/release.yaml
vendored
@ -89,7 +89,7 @@ jobs:
|
|||||||
- name: Install Cosign
|
- name: Install Cosign
|
||||||
uses: sigstore/cosign-installer@main
|
uses: sigstore/cosign-installer@main
|
||||||
- name: Install earthly
|
- name: Install earthly
|
||||||
uses: Luet-lab/luet-install-action@v1
|
uses: jimmykarily/luet-install-action@v1.2
|
||||||
with:
|
with:
|
||||||
repository: quay.io/kairos/packages
|
repository: quay.io/kairos/packages
|
||||||
packages: utils/earthly
|
packages: utils/earthly
|
||||||
@ -176,7 +176,7 @@ jobs:
|
|||||||
- name: Login to Quay Registry
|
- name: Login to Quay Registry
|
||||||
run: echo ${{ secrets.QUAY_PASSWORD }} | docker login -u ${{ secrets.QUAY_USERNAME }} --password-stdin quay.io
|
run: echo ${{ secrets.QUAY_PASSWORD }} | docker login -u ${{ secrets.QUAY_USERNAME }} --password-stdin quay.io
|
||||||
- name: Install earthly
|
- name: Install earthly
|
||||||
uses: Luet-lab/luet-install-action@v1
|
uses: jimmykarily/luet-install-action@v1.2
|
||||||
with:
|
with:
|
||||||
repository: quay.io/kairos/packages
|
repository: quay.io/kairos/packages
|
||||||
packages: utils/earthly
|
packages: utils/earthly
|
||||||
@ -238,7 +238,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Install earthly
|
- name: Install earthly
|
||||||
uses: Luet-lab/luet-install-action@v1
|
uses: jimmykarily/luet-install-action@v1.2
|
||||||
with:
|
with:
|
||||||
repository: quay.io/kairos/packages
|
repository: quay.io/kairos/packages
|
||||||
packages: utils/earthly
|
packages: utils/earthly
|
||||||
@ -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/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
|
sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET
|
||||||
- name: Install earthly
|
- name: Install earthly
|
||||||
uses: Luet-lab/luet-install-action@v1
|
uses: jimmykarily/luet-install-action@v1.2
|
||||||
with:
|
with:
|
||||||
repository: quay.io/kairos/packages
|
repository: quay.io/kairos/packages
|
||||||
packages: utils/earthly
|
packages: utils/earthly
|
||||||
|
2
.github/workflows/reusable-build-flavor.yaml
vendored
2
.github/workflows/reusable-build-flavor.yaml
vendored
@ -61,7 +61,7 @@ jobs:
|
|||||||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
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
|
run: echo ${{ secrets.QUAY_PASSWORD }} | docker login -u ${{ secrets.QUAY_USERNAME }} --password-stdin quay.io
|
||||||
- name: Install earthly
|
- name: Install earthly
|
||||||
uses: Luet-lab/luet-install-action@v1
|
uses: jimmykarily/luet-install-action@v1.2
|
||||||
with:
|
with:
|
||||||
repository: quay.io/kairos/packages
|
repository: quay.io/kairos/packages
|
||||||
packages: utils/earthly
|
packages: utils/earthly
|
||||||
|
@ -21,7 +21,7 @@ jobs:
|
|||||||
- name: Login to Quay Registry
|
- name: Login to Quay Registry
|
||||||
run: echo ${{ secrets.QUAY_PASSWORD }} | docker login -u ${{ secrets.QUAY_USERNAME }} --password-stdin quay.io
|
run: echo ${{ secrets.QUAY_PASSWORD }} | docker login -u ${{ secrets.QUAY_USERNAME }} --password-stdin quay.io
|
||||||
- name: Install earthly
|
- name: Install earthly
|
||||||
uses: Luet-lab/luet-install-action@v1
|
uses: jimmykarily/luet-install-action@v1.2
|
||||||
with:
|
with:
|
||||||
repository: quay.io/kairos/packages
|
repository: quay.io/kairos/packages
|
||||||
packages: utils/earthly
|
packages: utils/earthly
|
||||||
|
@ -52,7 +52,7 @@ jobs:
|
|||||||
- run: |
|
- run: |
|
||||||
git fetch --prune --unshallow
|
git fetch --prune --unshallow
|
||||||
- name: Install earthly
|
- name: Install earthly
|
||||||
uses: Luet-lab/luet-install-action@v1
|
uses: jimmykarily/luet-install-action@v1.2
|
||||||
with:
|
with:
|
||||||
repository: quay.io/kairos/packages
|
repository: quay.io/kairos/packages
|
||||||
packages: utils/earthly
|
packages: utils/earthly
|
||||||
|
@ -71,7 +71,7 @@ jobs:
|
|||||||
id: buildx
|
id: buildx
|
||||||
uses: docker/setup-buildx-action@master
|
uses: docker/setup-buildx-action@master
|
||||||
- name: Install earthly
|
- name: Install earthly
|
||||||
uses: Luet-lab/luet-install-action@v1
|
uses: jimmykarily/luet-install-action@v1.2
|
||||||
with:
|
with:
|
||||||
repository: quay.io/kairos/packages
|
repository: quay.io/kairos/packages
|
||||||
packages: utils/earthly
|
packages: utils/earthly
|
||||||
|
@ -15,7 +15,7 @@ jobs:
|
|||||||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
||||||
- name: Install earthly
|
- name: Install earthly
|
||||||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
||||||
uses: Luet-lab/luet-install-action@v1
|
uses: jimmykarily/luet-install-action@v1.2
|
||||||
with:
|
with:
|
||||||
repository: quay.io/kairos/packages
|
repository: quay.io/kairos/packages
|
||||||
packages: utils/earthly
|
packages: utils/earthly
|
||||||
|
@ -38,7 +38,7 @@ jobs:
|
|||||||
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
|
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
|
||||||
sudo usermod -a -G kvm,libvirt $USER
|
sudo usermod -a -G kvm,libvirt $USER
|
||||||
- name: Install earthly
|
- name: Install earthly
|
||||||
uses: Luet-lab/luet-install-action@v1
|
uses: jimmykarily/luet-install-action@v1.2
|
||||||
with:
|
with:
|
||||||
repository: quay.io/kairos/packages
|
repository: quay.io/kairos/packages
|
||||||
packages: utils/earthly
|
packages: utils/earthly
|
||||||
|
@ -31,7 +31,7 @@ jobs:
|
|||||||
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
|
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
|
||||||
sudo usermod -a -G kvm,libvirt $USER
|
sudo usermod -a -G kvm,libvirt $USER
|
||||||
- name: Install earthly
|
- name: Install earthly
|
||||||
uses: Luet-lab/luet-install-action@v1
|
uses: jimmykarily/luet-install-action@v1.2
|
||||||
with:
|
with:
|
||||||
repository: quay.io/kairos/packages
|
repository: quay.io/kairos/packages
|
||||||
packages: utils/earthly
|
packages: utils/earthly
|
||||||
|
@ -57,7 +57,7 @@ jobs:
|
|||||||
- name: Display structure of downloaded files
|
- name: Display structure of downloaded files
|
||||||
run: ls -las .
|
run: ls -las .
|
||||||
- name: Install earthly
|
- name: Install earthly
|
||||||
uses: Luet-lab/luet-install-action@v1
|
uses: jimmykarily/luet-install-action@v1.2
|
||||||
with:
|
with:
|
||||||
repository: quay.io/kairos/packages
|
repository: quay.io/kairos/packages
|
||||||
packages: utils/earthly
|
packages: utils/earthly
|
||||||
|
@ -22,7 +22,7 @@ jobs:
|
|||||||
- name: Display structure of downloaded files
|
- name: Display structure of downloaded files
|
||||||
run: ls -las .
|
run: ls -las .
|
||||||
- name: Install earthly
|
- name: Install earthly
|
||||||
uses: Luet-lab/luet-install-action@v1
|
uses: jimmykarily/luet-install-action@v1.2
|
||||||
with:
|
with:
|
||||||
repository: quay.io/kairos/packages
|
repository: quay.io/kairos/packages
|
||||||
packages: utils/earthly
|
packages: utils/earthly
|
||||||
|
@ -47,7 +47,7 @@ jobs:
|
|||||||
- run: |
|
- run: |
|
||||||
git fetch --prune --unshallow
|
git fetch --prune --unshallow
|
||||||
- name: Install earthly
|
- name: Install earthly
|
||||||
uses: Luet-lab/luet-install-action@v1
|
uses: jimmykarily/luet-install-action@v1.2
|
||||||
with:
|
with:
|
||||||
repository: quay.io/kairos/packages
|
repository: quay.io/kairos/packages
|
||||||
packages: utils/earthly
|
packages: utils/earthly
|
||||||
|
@ -22,7 +22,7 @@ jobs:
|
|||||||
- name: Display structure of downloaded files
|
- name: Display structure of downloaded files
|
||||||
run: ls -las .
|
run: ls -las .
|
||||||
- name: Install earthly
|
- name: Install earthly
|
||||||
uses: Luet-lab/luet-install-action@v1
|
uses: jimmykarily/luet-install-action@v1.2
|
||||||
with:
|
with:
|
||||||
repository: quay.io/kairos/packages
|
repository: quay.io/kairos/packages
|
||||||
packages: utils/earthly
|
packages: utils/earthly
|
||||||
|
@ -61,7 +61,7 @@ jobs:
|
|||||||
- name: Display structure of downloaded files
|
- name: Display structure of downloaded files
|
||||||
run: ls -las .
|
run: ls -las .
|
||||||
- name: Install earthly
|
- name: Install earthly
|
||||||
uses: Luet-lab/luet-install-action@v1
|
uses: jimmykarily/luet-install-action@v1.2
|
||||||
with:
|
with:
|
||||||
repository: quay.io/kairos/packages
|
repository: quay.io/kairos/packages
|
||||||
packages: utils/earthly
|
packages: utils/earthly
|
||||||
|
@ -44,7 +44,7 @@ jobs:
|
|||||||
sudo rm -rfv build || true
|
sudo rm -rfv build || true
|
||||||
df -h
|
df -h
|
||||||
- name: Install earthly
|
- name: Install earthly
|
||||||
uses: Luet-lab/luet-install-action@v1
|
uses: jimmykarily/luet-install-action@v1.2
|
||||||
with:
|
with:
|
||||||
repository: quay.io/kairos/packages
|
repository: quay.io/kairos/packages
|
||||||
packages: utils/earthly
|
packages: utils/earthly
|
||||||
|
2
.github/workflows/reusable-zfs-test.yaml
vendored
2
.github/workflows/reusable-zfs-test.yaml
vendored
@ -21,7 +21,7 @@ jobs:
|
|||||||
run: ls -R
|
run: ls -R
|
||||||
working-directory: ./build
|
working-directory: ./build
|
||||||
- name: Install earthly
|
- name: Install earthly
|
||||||
uses: Luet-lab/luet-install-action@v1
|
uses: jimmykarily/luet-install-action@v1.2
|
||||||
with:
|
with:
|
||||||
repository: quay.io/kairos/packages
|
repository: quay.io/kairos/packages
|
||||||
packages: utils/earthly
|
packages: utils/earthly
|
||||||
|
Loading…
Reference in New Issue
Block a user