Skip to content

Commit 02c2760

Browse files
committed
Fix config
1 parent f6984a3 commit 02c2760

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

.github/actions/config/action.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
name: Set Environment Variables
33

44
inputs:
5-
VARIANT:
6-
description: "The desktop variant to build. Use 'ALL' to build all variants."
5+
SIGNING_SECRET:
6+
description: "The secret used for signing the image. If not provided, the image will not be signed."
77
required: false
88

99
outputs:
@@ -28,12 +28,6 @@ outputs:
2828
IMAGE_REF:
2929
description: "The full reference to the image in the registry"
3030
value: ${{ steps.set.outputs.IMAGE_REF }}
31-
VARIANTS:
32-
description: "The desktop variants to build"
33-
value: ${{ steps.set.outputs.VARIANTS }}
34-
MATRIX:
35-
description: "The matrix of variants to build"
36-
value: ${{ steps.set.outputs.MATRIX }}
3731
IS_SIGNED:
3832
description: "Whether the image is signed"
3933
value: ${{ steps.set.outputs.IS_SIGNED }}
@@ -65,9 +59,9 @@ runs:
6559
echo "IMAGE_REF=${REGISTRY}/${IMAGE_PATH}/${IMAGE_NAME}" >> $GITHUB_OUTPUT
6660
echo "PLATFORMS=${PLATFORMS}" >> $GITHUB_OUTPUT
6761
68-
# This is a workaround so that the expansion of secrets.SIGNING_SECRET doesn't break the if statement
62+
# This is a workaround so that the expansion of SIGNING_SECRET doesn't break the if statement
6963
SECRET=$(cat <<EOF
70-
${{ secrets.SIGNING_SECRET }}
64+
${{ inputs.SIGNING_SECRET }}
7165
EOF
7266
)
7367
if [ -z "${SECRET}" ]; then

.github/workflows/build-iso.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
- name: Set environment variables
2929
uses: ./.github/actions/config
3030
id: set
31+
with:
32+
SIGNING_SECRET: ${{ secrets.SIGNING_SECRET }}
3133

3234
build-iso:
3335
name: Build ISO

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ jobs:
3434
- name: Set environment variables
3535
uses: ./.github/actions/config
3636
id: set
37+
with:
38+
SIGNING_SECRET: ${{ secrets.SIGNING_SECRET }}
3739

3840
build-image:
3941
name: Build image

0 commit comments

Comments
 (0)