From 2b40d4b4367c669f1e557194db7bc14ac40f8b53 Mon Sep 17 00:00:00 2001 From: ER Date: Mon, 3 Apr 2023 15:02:22 +0300 Subject: [PATCH] feat: declare image name in recipe.yml --- .github/workflows/build.yml | 8 +++++--- recipe.yml | 1 + 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1e264e5..b37317f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,7 +17,6 @@ on: workflow_dispatch: env: - IMAGE_NAME: startingpoint IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }} jobs: @@ -41,9 +40,12 @@ jobs: - name: Checkout Push to Registry action uses: actions/checkout@v3 - - name: Matrix Variables + - name: Add yq - portable yaml processor + uses: mikefarah/yq@v4.33.2 + + - name: Gather image data from recipe run: | - echo "IMAGE_NAME=${{ env.IMAGE_NAME }}" >> $GITHUB_ENV + echo "IMAGE_NAME=$(yq '.name' ./recipe.yml)" >> $GITHUB_ENV - name: Generate tags id: generate-tags diff --git a/recipe.yml b/recipe.yml index 02f49df..07c74e4 100644 --- a/recipe.yml +++ b/recipe.yml @@ -1,3 +1,4 @@ +name: startingpoint rpms: - python3-pip # needed for yafti flatpaks: