Skip to content

Commit

Permalink
Add inputs.build_options for DEB_BUILD_OPTIONS.
Browse files Browse the repository at this point in the history
  • Loading branch information
alee-ntap committed Nov 6, 2023
1 parent ac7be15 commit 92483ec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/build_pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,17 @@ on:
decsription: changelog entry
default: "Rebuild for Garden Linux."
required: true
build_options:
description: Options to be passed to DEB_BUILD_OPTIONS variable
required: false


env:
INPUT_EMAIL: ${{ inputs.email }}
INPUT_NAME: ${{ inputs.name }}
INPUT_DIST: ${{ inputs.distribution }}
INPUT_MESSAGE: ${{ inputs.message }}
INPUT_BUILD_OPTIONS: ${{ inputs.build_options }}

jobs:
source:
Expand Down Expand Up @@ -75,6 +80,7 @@ jobs:
-e NAME=${{ env.INPUT_NAME }} \
-e DIST=${{ env.INPUT_DIST }} \
-e MESSAGE=${{ env.INPUT_MESSAGE }} \
-e BUILD_OPTIONS=${{ env.INPUT_BUILD_OPTIONS }} \
--rm \
-v "$PWD/input:/input" \
-v "$PWD/output:/output" \
Expand Down Expand Up @@ -153,6 +159,7 @@ jobs:
-e NAME=${{ env.INPUT_NAME }} \
-e DIST=${{ env.INPUT_DIST }} \
-e MESSAGE=${{ env.INPUT_MESSAGE }} \
-e BUILD_OPTIONS=${{ env.INPUT_BUILD_OPTIONS }} \
--rm \
-v "$PWD/input:/input" \
-v "$PWD/output:/output" \
Expand Down
2 changes: 1 addition & 1 deletion container/bin/build_source
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ exec 3>&1
exec 1>&2

main() (
DEB_BUILD_OPTIONS="terse $(yq -r '.build_options // ""' < "/input/pkg.yaml")"
DEB_BUILD_OPTIONS="$BUILD_OPTIONS"
export DEB_BUILD_OPTIONS

source="$(yq -r '.source // ""' < "/input/pkg.yaml")"
Expand Down

0 comments on commit 92483ec

Please sign in to comment.