diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0074670..88e2938 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -91,14 +91,11 @@ jobs: - name: Checkout repo uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - name: Add yq (for reading recipe.yml) - uses: mikefarah/yq@bbdd97482f2d439126582a59689eb1c855944955 # v4.44.3 - - name: Gather image data from recipe run: | - echo "IMAGE_NAME=$(yq '.name' ./recipes/${{ matrix.recipe }})" >> $GITHUB_ENV - echo "IMAGE_MAJOR_VERSION=$(yq '.image-version' ./recipes/${{ matrix.recipe }})" >> $GITHUB_ENV - BASE_IMAGE=$(yq '.base-image' ./recipes/${{ matrix.recipe }}) + echo "IMAGE_NAME=$(grep '^name:' ./recipes/${{ matrix.recipe }} | sed 's/^name: //')" >> $GITHUB_ENV + echo "IMAGE_MAJOR_VERSION=$(grep '^image-version:' ./recipes/${{ matrix.recipe }} | sed 's/^image-version: //')" >> $GITHUB_ENV + BASE_IMAGE=$(grep '^base-image:' ./recipes/${{ matrix.recipe }} | sed 's/^base-image: //') echo "BASE_IMAGE_NAME=$(echo $BASE_IMAGE | sed 's/.*\/.*\///')" >> $GITHUB_ENV - name: Verify base image