Skip to content

Commit

Permalink
build: parametrize the build action
Browse files Browse the repository at this point in the history
  • Loading branch information
yacoob committed Nov 28, 2024
1 parent c44880f commit 7d57e25
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,28 @@ on:
branches:
- main
workflow_call:
inputs:
recipe:
description: Recipe file to use
required: true
type: string
secrets:
SIGNING_SECRET:
required: true
workflow_dispatch:
jobs:
bluebuild:
name: Build Custom Images
name: Build custom images from ${{ inputs.recipe }}
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write
strategy:
fail-fast: false
matrix:
recipe:
- yaucore.yml
- yaurora.yml
steps:
- name: Build Custom Image
uses: blue-build/github-action@v1
with:
recipe: ${{ matrix.recipe }}
recipe: ${{ inputs.recipe }}
cosign_private_key: ${{ secrets.SIGNING_SECRET }}
registry_token: ${{ github.token }}
pr_event_number: ${{ github.event.number }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/maybe_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,5 @@ jobs:
secrets:
SIGNING_SECRET: ${{ secrets.SIGNING_SECRET }}
uses: ./.github/workflows/build.yaml
with:
recipe: yaurora.yaml

0 comments on commit 7d57e25

Please sign in to comment.