From ec1706c5482d7576abf6b9b143f7643208b6d9e2 Mon Sep 17 00:00:00 2001 From: Dimitris Karakasilis Date: Wed, 13 Sep 2023 14:05:58 +0300 Subject: [PATCH] Use one of our luet packages to install k3s (#1814) * 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 * [Temp] Run provider tests in PRs temporarily to test this PR Signed-off-by: Dimitris Karakasilis * Revert "[Temp] Run provider tests in PRs temporarily to test this PR" This reverts commit 41babdf06bdd189eb4419a6116f4077537a43a63. --------- 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