Skip to content

Commit 53a4c20

Browse files
committed
CI: Add input options
1 parent e681dff commit 53a4c20

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,29 @@ on:
1111
branches:
1212
- main
1313
- master
14+
workflow_dispatch:
15+
inputs:
16+
staging_url:
17+
description: |-
18+
URL to a staging Server to test unreleased packages.
19+
We will append the version to the Server and assume all packages are in the same directory.
20+
Only supported for AIO packages
21+
required: false
22+
type: string
23+
default: 'https://artifacts.voxpupuli.org/openvox-agent/'
24+
collection:
25+
description: |-
26+
When set to staging, we will download the packages from staging_url.
27+
Otherwise we will use the official repos. Supported values: puppet7, puppet8, openvox7, openvox8, staging.
28+
When unset, we will generate a list of supported collections based on metadata.json.
29+
required: false
30+
type: string
31+
version:
32+
description: |-
33+
The package version we want to test.
34+
Only used for collection = staging
35+
required: false
36+
type: string
1437

1538
concurrency:
1639
group: ${{ github.ref_name }}
@@ -23,3 +46,7 @@ jobs:
2346
puppet:
2447
name: Puppet
2548
uses: voxpupuli/gha-puppet/.github/workflows/beaker.yml@v4
49+
env:
50+
BEAKER_STAGING_URL: ${{ inputs.staging_url }}
51+
BEAKER_PUPPET_COLLECTION: ${{ inputs.collecton }}
52+
BEAKER_STAGING_VERSION: ${{ inputs.version }}

0 commit comments

Comments
 (0)