-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
46 lines (43 loc) · 1.52 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
apiVersion: automation.cloudbees.io/v1alpha1
kind: action
name: jfrog pipeline actions
inputs:
url: # id of input
description: 'jfrog action url'
required: true
token: # id of input
description: 'jfrog token'
required: true
pipeline-name: # id of input
description: 'pipeline name'
required: true
project-name: # id of input
description: 'project name'
required: false
default: ''
branch-name: # id of input
description: 'branch name'
required: false
default: ''
environment-variables: # id of input
description: 'environement variables as json'
required: false
default: '{}'
runs:
using: composite
steps:
- id: invoke-jfrog-pipeline-job
name: invoke-jfrog-pipeline-job
uses: docker://public.ecr.aws/l7o7z1g8/actions/jfrog-pipeline-actions:main-c9f04e6744f77cfe1eeb5926797844840ac361c8
shell: sh
env:
CONFIG_JSON: '{"metaInfo":{"url":"${{ inputs.url }}","toolType":"JFROG_PIPELINE","token":"${{ inputs.token }}","pipelineName":"${{ inputs.pipeline-name }}","projectName":"${{ inputs.project-name }}","branchName":"${{ inputs.branch-name }}","environmentVariables":${{ inputs.environment-variables }}}}'
RUN_ID: ${{ cloudbees.run_id }}
JOB_ID: ${{ job.id }}
STEP_ID: ${{ step.internal.id }}
DNS_URL: ${{ cloudbees.api.url }}
JWT_TOKEN: ${{ cloudbees.api.token }}
run: |
set -x
cd /app
./jfrog_pipeline_actions_app invoke -i $CONFIG_JSON