From 1bfabe674e92dd5bf7fc12956941857de4eacd0a Mon Sep 17 00:00:00 2001 From: ER Date: Mon, 3 Apr 2023 16:36:28 +0300 Subject: [PATCH] feat: use a recipe matrix --- .github/workflows/build.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c555207..86b5471 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,6 +30,8 @@ jobs: strategy: fail-fast: false matrix: + recipe: + - recipe.yml steps: # Checkout push-to-registry action GitHub repository @@ -41,10 +43,10 @@ jobs: - name: Gather image data from recipe run: | - echo "IMAGE_NAME=$(yq '.name' ./recipe.yml)" >> $GITHUB_ENV - echo "IMAGE_DESCRIPTION=$(yq '.description' ./recipe.yml)" >> $GITHUB_ENV - echo "FEDORA_MAJOR_VERSION=$(yq '.fedora-version' ./recipe.yml)" >> $GITHUB_ENV - echo "BASE_CONTAINER_URL=$(yq '.base-container' ./recipe.yml)" >> $GITHUB_ENV + echo "IMAGE_NAME=$(yq '.name' ./${{ matrix.recipe }})" >> $GITHUB_ENV + echo "IMAGE_DESCRIPTION=$(yq '.description' ./${{ matrix.recipe }})" >> $GITHUB_ENV + echo "FEDORA_MAJOR_VERSION=$(yq '.fedora-version' ./${{ matrix.recipe }})" >> $GITHUB_ENV + echo "BASE_CONTAINER_URL=$(yq '.base-container' ./${{ matrix.recipe }})" >> $GITHUB_ENV - name: Generate tags id: generate-tags