@@ -13,40 +13,101 @@ inputs:
13
13
jfrog-platform-url :
14
14
description : " "
15
15
required : false
16
- default : https://aerospike.jfrog.io/
16
+ default : https://aerospike.jfrog.io
17
17
oidc-provider :
18
18
description : " "
19
- required : false
20
- default : gh-aerospike-clients
19
+ required : true
21
20
oidc-audience :
22
21
description : " "
23
- required : false
24
- default : aerospike/clients
22
+ required : true
25
23
crypto-type :
26
24
description : " "
27
25
required : false
28
- default : gnu
26
+ artifact-name :
27
+ description : " "
28
+ required : true
29
+ artifact-id :
30
+ description : " "
31
+ required : true
32
+ artifact-version :
33
+ description : " "
34
+ required : true
29
35
30
36
runs :
31
37
using : " composite"
32
38
steps :
33
39
- name : Set up JFrog credentials
40
+ id : setup-jfrog-cli
34
41
uses : jfrog/setup-jfrog-cli@v4
35
42
env :
36
43
JF_URL : ${{ inputs.jfrog-platform-url }}
37
44
with :
45
+ version : 2.72.2
38
46
oidc-provider-name : ${{ inputs.oidc-provider }}
39
47
oidc-audience : ${{ inputs.oidc-audience }}
40
48
41
- - name : Set crypto dependency
49
+
50
+ with :
51
+ servers : ' [{"id": "jfrog", "username": "${{ steps.setup-jfrog-cli.outputs.oidc-user }}", "password": "${{ steps.setup-jfrog-cli.outputs.oidc-token }}"}]'
52
+
53
+ - name : Configure jf cli
42
54
shell : bash
43
55
run : |
44
- ./set_crypto ${{ inputs.crypto-type }}
56
+ jf mvn-config \
57
+ --repo-deploy-releases=${{ inputs.jfrog-releases-repo-name }} \
58
+ --repo-deploy-snapshots=${{ inputs.jfrog-snapshots-repo-name }}
59
+
60
+ #--exclude-patterns="*client${{ inputs.crypto-type != 'bouncycastle' && '-bc' || '' }}-jdk21*" \
61
+ #--include-patterns="*client${{ inputs.crypto-type == 'bouncycastle' && '-bc' || '' }}-jdk21*"
45
62
46
- - name : Deploy release
63
+ - name : Deploy client release
47
64
shell : bash
48
65
working-directory : client
49
66
run : |
50
- jf mvn-config --repo-deploy-releases=${{ inputs.jfrog-releases-repo-name }} --repo-deploy-snapshots=${{ inputs.jfrog-snapshots-repo-name }}
51
- jf mvn source:jar javadoc:jar deploy -Dusername=${{ steps.setup-jfrog-cli.outputs.oidc-user }} ${{ steps.setup-jfrog-cli.outputs.oidc-token }}
52
- jf rt bp
67
+ # jf mvn source:jar javadoc:jar install deploy:deploy-file \
68
+ # -DartifactId=${{ inputs.artifact-id }} \
69
+ # -DpomFile=src/resources/${{ inputs.crypto-type }}_pom.xml \
70
+ # -Dfile=target/${{ inputs.artifact-name }}.jar \
71
+ # -Dfiles=target/${{ inputs.artifact-name }}-jar-with-dependencies.jar \
72
+ # -Dtypes=jar \
73
+ # -Dclassifiers=jar-with-dependencies \
74
+ # -Dsources=target/${{ inputs.artifact-name }}-sources.jar \
75
+ # -Djavadoc=target/${{ inputs.artifact-name }}-javadoc.jar \
76
+ # -DrepositoryId=jfrog \
77
+ # -DgeneratePom=false \
78
+ # -Durl=${{ inputs.jfrog-platform-url }}/artifactory/${{ inputs.jfrog-releases-repo-name }}
79
+ #
80
+ # jf mvn org.apache.maven.plugins:maven-deploy-plugin:3.1.3:deploy-file \
81
+ # -DartifactId=${{ inputs.artifact-id }} \
82
+ # -DpomFile=src/resources/${{ inputs.crypto-type }}_pom.xml \
83
+ # -Dfile=target/${{ inputs.artifact-name }}.jar \
84
+ # -Dfiles=target/${{ inputs.artifact-name }}-jar-with-dependencies.jar \
85
+ # -Dsources=target/${{ inputs.artifact-name }}-sources.jar \
86
+ # -Djavadoc=target/${{ inputs.artifact-name }}-javadoc.jar \
87
+ # -Dtypes=jar \
88
+ # -Dclassifiers=jar-with-dependencies \
89
+ # -DrepositoryId=jfrog \
90
+ # -DgeneratePom=false \
91
+ # -Durl=${{ inputs.jfrog-platform-url }}/artifactory/${{ inputs.jfrog-releases-repo-name }}
92
+ jf mvn source:jar javadoc:jar install
93
+
94
+ - name : Overwrite default pom with public release pom
95
+ shell : bash
96
+ working-directory : client
97
+ run : |
98
+ jf rt upload \
99
+ src/resources/${{ inputs.crypto-type }}_pom.xml \
100
+ my-maven-repo/com/aerospike/${{ inputs.artifact-id }}/${{ inputs.artifact-version }}/${{ inputs.artifact-name }}.pom \
101
+ --build-name=clients-java-push-to-dev \
102
+ --build-number=${{ github.run_number }} \
103
+ --overwrite=true
104
+
105
+ - name : Publish build info
106
+ shell : bash
107
+ run : |
108
+ # Collect environment variables for the build
109
+ jf rt bce
110
+ # Collect VCS details from git and add them to the build
111
+ jf rt bag
112
+ # Publish build info
113
+ jf rt bp clients-java-push-to-dev ${{ github.run_number }}
0 commit comments