Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
feat: declare image name in recipe.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
xynydev committed Apr 3, 2023
1 parent f4a3bbd commit 2b40d4b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ on:
workflow_dispatch:

env:
IMAGE_NAME: startingpoint
IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }}

jobs:
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions recipe.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
name: startingpoint
rpms:
- python3-pip # needed for yafti
flatpaks:
Expand Down

0 comments on commit 2b40d4b

Please sign in to comment.