adjust workflow for new recipe format

This commit is contained in:
Tau 2024-04-10 16:58:47 +02:00
parent 08f5953684
commit e0f30fced4

View file

@ -23,12 +23,12 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install dependencies - 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 - name: Read base image name from recipe
id: read_base_recipe id: read_base_recipe
run: | 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 echo The base image is $BASE_IMAGE
if [ -z $BASE_IMAGE ]; then exit 1; fi if [ -z $BASE_IMAGE ]; then exit 1; fi
echo "base_image=$BASE_IMAGE" >> "$GITHUB_OUTPUT" echo "base_image=$BASE_IMAGE" >> "$GITHUB_OUTPUT"