adjust workflow for new recipe format
This commit is contained in:
parent
08f5953684
commit
e0f30fced4
1 changed files with 2 additions and 2 deletions
4
.github/workflows/vib-build.yml
vendored
4
.github/workflows/vib-build.yml
vendored
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue