-
Notifications
You must be signed in to change notification settings - Fork 1
75 lines (66 loc) · 2.17 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
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:
runs-on: ${{ inputs.runner }}
name: CI Build SNAPSHOT for ${{ github.ref_name }}
steps:
- uses: actions/checkout@v4
with:
show-progress: false
- name: Checkout Common Repo
uses: actions/checkout@v4
with:
repository: spring-io/spring-github-workflows
path: spring-github-workflows
show-progress: false
ref: ${{ env.WORKFLOWS_REF }}
- name: Build and Publish
timeout-minutes: 30
uses: ./spring-github-workflows/.github/actions/spring-artifactory-gradle-build
with:
gradleTasks: ${{ inputs.gradleTasks }}
artifactoryUrl: ${{ inputs.artifactoryUrl }}
targetRepository: ${{ inputs.targetRepository }}
artifactoryProjectKey: ${{ inputs.artifactoryProjectKey }}
artifactoryUsername: ${{ secrets.ARTIFACTORY_USERNAME }}
artifactoryPassword: ${{ secrets.ARTIFACTORY_PASSWORD }}
gpgPrivateKey: ${{ secrets.GPG_PRIVATE_KEY }}
gpgPassphrase: ${{ secrets.GPG_PASSPHRASE }}