-
Notifications
You must be signed in to change notification settings - Fork 3
55 lines (50 loc) · 1.52 KB
/
spring-artifactory-gradle-snapshot.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
47
48
49
50
51
52
53
54
name: CI Artifactory SNAPSHOT Build for Gradle
on:
workflow_call:
inputs:
gradleTasks:
description: 'Additional Gradle tasks. The `build` and `artifactoryPublish` are included.'
required: false
type: string
artifactoryUrl:
description: 'The Artifactory Server'
required: false
type: string
targetRepository:
description: 'The Artifactory Repository to upload snapshot artifacts to'
required: false
type: string
artifactoryProjectKey:
description: 'The Artifactory project key'
required: false
type: string
runner:
description: 'The runner for job'
required: false
type: string
default: ubuntu-latest
secrets:
DEVELOCITY_ACCESS_KEY:
required: false
ARTIFACTORY_USERNAME:
required: true
ARTIFACTORY_PASSWORD:
required: true
GPG_PASSPHRASE:
required: false
GPG_PRIVATE_KEY:
required: false
env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
WORKFLOWS_REF: main
jobs:
build-snapshot-with-gradle:
name: CI Build SNAPSHOT for ${{ github.ref_name }}
uses: ./.github/workflows/spring-artifactory-gradle-build.yml
with:
gradleTasks: ${{ inputs.gradleTasks }}
artifactoryUrl: ${{ inputs.artifactoryUrl }}
targetRepository: ${{ inputs.targetRepository }}
artifactoryProjectKey: ${{ inputs.artifactoryProjectKey }}
runner: ${{ inputs.runner }}
secrets: inherit