Skip to content

Commit

Permalink
testing build again
Browse files Browse the repository at this point in the history
  • Loading branch information
lenuswalker committed Aug 17, 2024
1 parent c3d8a78 commit 0be383b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,33 @@ jobs:
- recipe.yml
- recipe-nvidia.yml
steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Add yq (for reading recipe.yml)
uses: mikefarah/yq@v4.44.2

- 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 "BASE_IMAGE_NAME=$(echo $BASE_IMAGE | sed 's/.*\/.*\///')" >> $GITHUB_ENV
- name: Verify base image
uses: EyeCantCU/cosign-action/verify@v0.3.0
with:
containers: ${{ env.BASE_IMAGE_NAME }}:${{ env.IMAGE_MAJOR_VERSION }}

# the build is fully handled by the reusable github action
- name: Build Custom Image
uses: blue-build/github-action@v1.6
uses: blue-build/github-action@v1.6.1
with:
cli_version: v0.8.11
recipe: ${{ matrix.recipe }}
cosign_private_key: ${{ secrets.SIGNING_SECRET }}
registry_token: ${{ github.token }}
pr_event_number: ${{ github.event.number }}

# enabled by default, disable if your image is small and you want faster builds
maximize_build_space: true
#maximize_build_space: true
2 changes: 1 addition & 1 deletion recipes/recipe-hyprland.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: izzy-os-hyprland
description: This is my personal OS image.

# the base image to build on top of (FROM) and the version tag to use
base-image: ghcr.io/ublue-os/silverblue-main
base-image: ghcr.io/ublue-os/base-main
image-version: latest # latest is also supported if you want new updates ASAP

# module configuration, executed in order
Expand Down

0 comments on commit 0be383b

Please sign in to comment.