Skip to content

Commit

Permalink
ci: added support of OS_NAME and OS_VERSION for scripted input. (#4)
Browse files Browse the repository at this point in the history
Co-authored-by: Dwijesh Shah <dwijeshs@splunk.com>
  • Loading branch information
harshilgajera-crest and dwijesh-shah-crest authored Jul 26, 2022
1 parent 779df62 commit 163814e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,14 @@ inputs:
description: 'Docker registry from which sc4s images will be pulled'
required: false
default: ''
os-name:
description: 'OS name on which splunk will be spinned for scripted input'
required: false
default: 'ubuntu'
os-version:
description: 'OS version on which splunk will be spinned for scripted input'
required: false
default: 'latest'

outputs:
workflow-name: # id of output
Expand All @@ -85,4 +93,6 @@ runs:
- ${{ inputs.sc4s-version }}
- ${{ inputs.install-java }}
- ${{ inputs.sc4s-docker-registry }}
- ${{ inputs.os-name }}
- ${{ inputs.os-version }}

2 changes: 2 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ WORKFLOW_NAME=`argo submit -v -o json --from wftmpl/${1} -n ${2} -l workflows.ar
-p sc4s-version=${12} \
-p install-java=${13} \
-p sc4s-docker-registry=${14} \
-p os-name=${15} \
-p os-version=${16} \
-l="${9},test-type=${7},splunk-version=${6}" | jq -r .metadata.name`

echo "After argo submit $?"
Expand Down

0 comments on commit 163814e

Please sign in to comment.