Skip to content

Commit 684b0a5

Browse files
committed
(AT-2429) Configures service URL via workflow input
Moves the service URL configuration to an input parameter for the `module_acceptance` workflow, enhancing flexibility. The service URL is now set as an environment variable using the provided input. This allows users to specify the target service URL when triggering the workflow.
1 parent b53a8c2 commit 684b0a5

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/module_acceptance.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ on:
1313
required: false
1414
default: ''
1515
type: "string"
16+
service_url:
17+
description: "The service URL to target when provisioning from GCP."
18+
required: false
19+
default: 'https://facade-release-6f3kfepqcq-ew.a.run.app/v1/provision'
20+
type: "string"
1621
kernel_modules:
1722
description: "Volume map host kernel /lib/modules into docker container"
1823
default: true
@@ -28,6 +33,7 @@ on:
2833
env:
2934
PUPPET_FORGE_TOKEN: ${{ secrets.PUPPET_FORGE_TOKEN || secrets.PUPPET_FORGE_TOKEN_PUBLIC }}
3035
BUNDLE_RUBYGEMS___PUPPETCORE__PUPPET__COM: "forge-key:${{ secrets.PUPPET_FORGE_TOKEN || secrets.PUPPET_FORGE_TOKEN_PUBLIC }}"
36+
SERVICE_URL: ${{ inputs.service_url }}
3137

3238
jobs:
3339

.github/workflows/module_ci.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@ on:
1414
required: false
1515
default: ''
1616
type: "string"
17-
service_url:
18-
description: "The service URL to target when provisioning from GCP."
19-
required: false
20-
default: 'https://facade-release-6f3kfepqcq-ew.a.run.app/v1/provision'
21-
type: "string"
2217
run_shellcheck:
2318
description: "Run shellcheck on all bash files"
2419
required: false
@@ -36,7 +31,6 @@ on:
3631
env:
3732
PUPPET_FORGE_TOKEN: ${{ secrets.PUPPET_FORGE_TOKEN || secrets.PUPPET_FORGE_TOKEN_PUBLIC }}
3833
BUNDLE_RUBYGEMS___PUPPETCORE__PUPPET__COM: "forge-key:${{ secrets.PUPPET_FORGE_TOKEN || secrets.PUPPET_FORGE_TOKEN_PUBLIC }}"
39-
SERVICE_URL: ${{ inputs.service_url }}
4034

4135
jobs:
4236
setup_matrix:

0 commit comments

Comments
 (0)