forked from newrelic/deployment-marker-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yaml
62 lines (62 loc) · 2.2 KB
/
action.yaml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: 'New Relic Application Deployment Marker'
author: 'New Relic'
description: 'Apply a New Relic application deployment marker to an application that is monitored by New Relic.'
branding:
icon: 'upload-cloud'
color: 'green'
inputs:
apiKey:
description: 'Your New Relic User API Key.'
required: true
guid:
description: 'Your New Relic entity GUID. This entity GUID should be for the entity you are tracking.'
required: true
version:
description: 'Custom version information to add to the deployment marker - e.g. the latest tag.'
required: true
region:
description: 'The geographical region for your New Relic account - US or EU. Default: US'
required: false
default: US
description:
description: 'Description stored with the deployment. Default: <none>'
required: false
changelog:
description: 'Change log string stored with the deployment. Default: <none>'
required: false
commit:
description: 'Commit for the deployment.'
required: false
deeplink:
description: 'Deep link referencing the deployment.'
required: false
deploymenttype:
description: 'The type of deployment this is conducting.'
required: false
default: BASIC
user:
description: 'The user creating the deployment. Default: `github.actor`'
required: false
default: '${{ github.actor }}'
groupid:
description: 'Group Id used to link deployments together.'
required: false
outputs:
deploymentId:
description: 'The id of the deployment'
runs:
using: 'docker'
image: 'Dockerfile'
env:
NEW_RELIC_API_KEY: ${{ inputs.apiKey }}
NEW_RELIC_DEPLOYMENT_ENTITY_GUID: ${{ inputs.guid }}
NEW_RELIC_REGION: ${{ inputs.region }}
NEW_RELIC_DEPLOYMENT_USER: ${{ inputs.user }}
NEW_RELIC_DEPLOYMENT_VERSION: ${{ inputs.version }}
NEW_RELIC_DEPLOYMENT_CHANGE_LOG: ${{ inputs.changelog }}
NEW_RELIC_DEPLOYMENT_COMMIT: ${{ inputs.commit}}
NEW_RELIC_DEPLOYMENT_DESCRIPTION: ${{ inputs.description }}
NEW_RELIC_DEPLOYMENT_DEEPLINK: ${{ inputs.deeplink }}
NEW_RELIC_DEPLOYMENT_TYPE: ${{ inputs.deploymenttype }}
NEW_RELIC_DEPLOYMENT_GROUP_ID: ${{ inputs.groupid }}
NEW_RELIC_SERVICE_NAME: "github-action|deployment-marker"