From 3400c7c7bfc7839ba887ea3406f6a1c46fd55c46 Mon Sep 17 00:00:00 2001 From: Dimitris Karakasilis Date: Wed, 13 Sep 2023 08:57:13 +0300 Subject: [PATCH] Use one of our luet packages to install k3s Fixing this: https://github.com/kairos-io/kairos/issues/1797#issuecomment-1711315693 Signed-off-by: Dimitris Karakasilis --- .github/workflows/reusable-build-provider.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/reusable-build-provider.yaml b/.github/workflows/reusable-build-provider.yaml index 70226cfca..0680c8e38 100644 --- a/.github/workflows/reusable-build-provider.yaml +++ b/.github/workflows/reusable-build-provider.yaml @@ -62,7 +62,12 @@ jobs: sudo iptables -I OUTPUT -d 169.254.169.254 -j DROP - name: Build PR 🔧 run: | - earthly +ci --SECURITY_SCANS=false --IMAGE=ttl.sh/kairos-${{ inputs.flavor }}-${{ github.sha }}-provider:24h --FLAVOR=${{ inputs.flavor }} --VARIANT=standard -K3S_VERSION=latest + K3S_VERSION=$(sudo luet --config framework-profile.yaml search -o json k8s/k3s | jq '.packages | map(.version) | unique | last') + earthly +ci \ + --SECURITY_SCANS=false \ + --IMAGE=ttl.sh/kairos-${{ inputs.flavor }}-${{ github.sha }}-provider:24h \ + --FLAVOR=${{ inputs.flavor }} \ + --VARIANT=standard -K3S_VERSION=${K3S_VERSION} sudo mv build/* . sudo rm -rf build - uses: actions/upload-artifact@v3