Skip to content

Commit

Permalink
Try to fix luet
Browse files Browse the repository at this point in the history
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
  • Loading branch information
jimmykarily committed Aug 2, 2023
1 parent 2b63b8e commit c86f7bc
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,23 @@ jobs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v3
- uses: Luet-lab/luet-install-action@v1
- run: |
git fetch --prune --unshallow
sudo apt update && sudo apt install -y jq
- uses: Luet-lab/luet-install-action@v1
with:
repository: quay.io/kairos/packages
#TODO: Find a better solution
packages: utils/earthly
- id: set-matrix
run: |
luet --config framework-profile.yaml \
repo add kairos --yes --url quay.io/kairos/packages --type docker
cat framework-profile.yaml
luet --config framework-profile.yaml config
# Construct an array like this from the found versions:
luet search -o json k8s/k3s | jq '.packages | map(.version)' > k3s_versions.json
luet --config framework-profile.yaml search -o json k8s/k3s
luet --config framework-profile.yaml search -o json k8s/k3s | jq '.packages | map(.version)' > k3s_versions.json
cat k3s_versions.json
content=$(jq -s '. | combinations | .[0] + {"k3s_version": .[1]} | select(.frameworkonly != "true")' .github/flavors.json k3s_versions.json)
# the following lines are only required for multi line json
content="${content//'%'/'%25'}"
Expand Down

0 comments on commit c86f7bc

Please sign in to comment.