From 03ac98ea5a8ad739ae7202545aae5d38ae38ccc6 Mon Sep 17 00:00:00 2001 From: Tau Date: Wed, 10 Apr 2024 16:58:47 +0200 Subject: [PATCH] adjust workflow for new recipe format --- .github/workflows/vib-build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/vib-build.yml b/.github/workflows/vib-build.yml index 03027fe..9182b7b 100644 --- a/.github/workflows/vib-build.yml +++ b/.github/workflows/vib-build.yml @@ -23,12 +23,12 @@ jobs: uses: actions/checkout@v4 - name: Install dependencies - run: sudo apt-get install -y jq skopeo + run: sudo apt-get install -y jq skopeo libfyaml-utils - name: Read base image name from recipe id: read_base_recipe run: | - BASE_IMAGE="$(cat recipe.yml | grep "base: " | awk -F ' ' '{print $2}')" + BASE_IMAGE="$(fy-filter -f recipe.yml /stages/-1/base)" echo The base image is $BASE_IMAGE if [ -z $BASE_IMAGE ]; then exit 1; fi echo "base_image=$BASE_IMAGE" >> "$GITHUB_OUTPUT"