Skip to content

Commit d83ce70

Browse files
committed
workflows: allow macOS-only staging package builds
Signed-off-by: Eduardo Silva <eduardo@chronosphere.io>
1 parent 01ae709 commit d83ce70

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

‎.github/workflows/staging-build.yaml‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ on:
2020
type: boolean
2121
required: false
2222
default: false
23+
macos_only:
24+
description: Only build and upload macOS packages.
25+
type: boolean
26+
default: false
27+
macos_ref:
28+
description: Override the source ref for the macOS package build.
29+
type: string
2330

2431
# We do not want a new staging build to run whilst we are releasing the current staging build.
2532
# We also do not want multiples to run for the same version.
@@ -74,6 +81,7 @@ jobs:
7481
flags: 'g'
7582

7683
staging-build-images:
84+
if: ${{ !inputs.macos_only }}
7785
needs: staging-build-get-meta
7886
permissions:
7987
contents: read
@@ -129,6 +137,7 @@ jobs:
129137
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET_STAGING }}
130138

131139
staging-build-generate-matrix:
140+
if: ${{ !inputs.macos_only }}
132141
name: Staging build matrix
133142
runs-on: ubuntu-latest
134143
outputs:
@@ -167,6 +176,7 @@ jobs:
167176
gpg_private_key_passphrase: ${{ secrets.GPG_PRIVATE_KEY_PASSPHRASE }}
168177

169178
staging-build-windows-packages:
179+
if: ${{ !inputs.macos_only }}
170180
needs:
171181
- staging-build-get-meta
172182
permissions:
@@ -190,7 +200,7 @@ jobs:
190200
uses: ./.github/workflows/call-build-macos.yaml
191201
with:
192202
version: ${{ needs.staging-build-get-meta.outputs.version }}
193-
ref: ${{ inputs.version || github.ref_name }}
203+
ref: ${{ inputs.macos_ref || inputs.version || github.ref_name }}
194204
environment: staging
195205
secrets:
196206
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)