-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yaml
66 lines (66 loc) · 2.63 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
63
64
65
66
name: 'Artifactory Deploy'
description: 'Deploy artifacts to Artifactory'
inputs:
uri:
description: 'URI of the Artifactory server'
required: true
username:
description: 'Artifactory username'
required: true
password:
description: 'Artifactory password'
required: true
build-name:
description: 'Name of the build'
required: true
build-number:
description: 'Number of the build'
required: true
default: ${{ github.run_number }}
build-uri:
description: 'URI of the build that produced the artifacts that are to be deployed'
required: false
default: ${{ format('{0}/{1}/actions/runs/{2}', github.server_url, github.repository, github.run_id) }}
folder:
description: 'Folder containing the artifacts to deploy'
required: true
project:
description: 'Project in which build info should be stored'
required: false
repository:
description: 'Artifactory repository to which the artifacts should be deployed'
threads:
description: 'Number of threads to use when deploying artifacts'
required: false
default: 1
signing-key:
description: 'A PGP/GPG signing key that will be used to sign artifacts before they are deployed'
required: false
signing-passphrase:
description: 'Passphrase of the signing key'
required: false
signing-key-id:
description: 'ID of the signing key that will be used. When omitted, the first key that is a signing key will be used'
required: false
artifact-properties:
description: 'Properties to apply to the deployed artifacts. Each line should be of the form
`<includes>:<excludes>:<properties>. includes and excludes are comma-separated Ant patterns.
properties is a comma-separated list of key=value pairs'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- --artifactory.server.uri=${{ inputs.uri }}
- --artifactory.server.username=${{ inputs.username }}
- --artifactory.server.password=${{ inputs.password }}
- --artifactory.deploy.artifact-properties=${{ inputs.artifact-properties }}
- --artifactory.deploy.build.name=${{ inputs.build-name }}
- --artifactory.deploy.build.number=${{ inputs.build-number }}
- --artifactory.deploy.build.uri=${{ inputs.build-uri }}
- --artifactory.deploy.folder=${{ inputs.folder }}
- --artifactory.deploy.project=${{ inputs.project }}
- --artifactory.deploy.repository=${{ inputs.repository }}
- --artifactory.deploy.threads=${{ inputs.threads }}
- --artifactory.signing.key=${{ inputs.signing-key }}
- --artifactory.signing.passphrase=${{ inputs.signing-passphrase }}
- --artifactory.signing.key-id=${{ inputs.signing-key-id }}