-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1a9f6b4
commit afa0eb7
Showing
18 changed files
with
252 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,40 +13,118 @@ inputs: | |
jfrog-platform-url: | ||
description: "" | ||
required: false | ||
default: https://aerospike.jfrog.io/ | ||
default: https://aerospike.jfrog.io | ||
oidc-provider: | ||
description: "" | ||
required: false | ||
default: gh-aerospike-clients | ||
required: true | ||
oidc-audience: | ||
description: "" | ||
required: false | ||
default: aerospike/clients | ||
required: true | ||
crypto-type: | ||
description: "" | ||
required: false | ||
default: gnu | ||
artifact-name: | ||
description: "" | ||
required: true | ||
artifact-id: | ||
description: "" | ||
required: true | ||
artifact-version: | ||
description: "" | ||
required: true | ||
deploy-spec-path: | ||
description: "" | ||
required: false | ||
default: deploy-resources | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Set up JFrog credentials | ||
id: setup-jfrog-cli | ||
uses: jfrog/setup-jfrog-cli@v4 | ||
env: | ||
JF_URL: ${{ inputs.jfrog-platform-url }} | ||
with: | ||
version: 2.72.2 | ||
oidc-provider-name: ${{ inputs.oidc-provider }} | ||
oidc-audience: ${{ inputs.oidc-audience }} | ||
|
||
- name: Set crypto dependency | ||
- uses: s4u/[email protected] | ||
with: | ||
servers: '[{"id": "jfrog", "username": "${{ steps.setup-jfrog-cli.outputs.oidc-user }}", "password": "${{ steps.setup-jfrog-cli.outputs.oidc-token }}"}]' | ||
|
||
- name: Configure jf cli | ||
shell: bash | ||
run: | | ||
./set_crypto ${{ inputs.crypto-type }} | ||
jf mvn-config \ | ||
--repo-deploy-releases=${{ inputs.jfrog-releases-repo-name }} \ | ||
--repo-deploy-snapshots=${{ inputs.jfrog-snapshots-repo-name }} | ||
#- name: Deploy client release | ||
# shell: bash | ||
# working-directory: client | ||
# run: | | ||
# # jf mvn source:jar javadoc:jar install deploy:deploy-file \ | ||
# # -DartifactId=${{ inputs.artifact-id }} \ | ||
# # -DpomFile=src/resources/${{ inputs.crypto-type }}_pom.xml \ | ||
# # -Dfile=target/${{ inputs.artifact-name }}.jar \ | ||
# # -Dfiles=target/${{ inputs.artifact-name }}-jar-with-dependencies.jar \ | ||
# # -Dtypes=jar \ | ||
# # -Dclassifiers=jar-with-dependencies \ | ||
# # -Dsources=target/${{ inputs.artifact-name }}-sources.jar \ | ||
# # -Djavadoc=target/${{ inputs.artifact-name }}-javadoc.jar \ | ||
# # -DrepositoryId=jfrog \ | ||
# # -DgeneratePom=false \ | ||
# # -Durl=${{ inputs.jfrog-platform-url }}/artifactory/${{ inputs.jfrog-releases-repo-name }} | ||
# # | ||
# # jf mvn org.apache.maven.plugins:maven-deploy-plugin:3.1.3:deploy-file \ | ||
# # -DartifactId=${{ inputs.artifact-id }} \ | ||
# # -DpomFile=src/resources/${{ inputs.crypto-type }}_pom.xml \ | ||
# # -Dfile=target/${{ inputs.artifact-name }}.jar \ | ||
# # -Dfiles=target/${{ inputs.artifact-name }}-jar-with-dependencies.jar \ | ||
# # -Dsources=target/${{ inputs.artifact-name }}-sources.jar \ | ||
# # -Djavadoc=target/${{ inputs.artifact-name }}-javadoc.jar \ | ||
# # -Dtypes=jar \ | ||
# # -Dclassifiers=jar-with-dependencies \ | ||
# # -DrepositoryId=jfrog \ | ||
# # -DgeneratePom=false \ | ||
# # -Durl=${{ inputs.jfrog-platform-url }}/artifactory/${{ inputs.jfrog-releases-repo-name }} | ||
# jf mvn source:jar javadoc:jar install | ||
|
||
#- name: Publish build info | ||
# shell: bash | ||
# run: | | ||
# # Collect environment variables for the build | ||
# jf rt bce | ||
# # Collect VCS details from git and add them to the build | ||
# jf rt bag | ||
# # Publish build info | ||
# jf rt bp clients-java-push-to-dev ${{ github.run_number }} | ||
# | ||
- name: Generate deploy spec | ||
shell: bash | ||
working-directory: client | ||
run: | | ||
jq --arg targetPattern ${{ inputs.jfrog-releases-repo-name }}/com/aerospike/${{ inputs.artifact-id }}/${{ inputs.artifact-version }}/ \ | ||
--arg publicPomPattern deploy-resources/${{ inputs.crypto-type }}_pom.xml \ | ||
--arg publicPomTarget ${{ inputs.jfrog-releases-repo-name }}/com/aerospike/${{ inputs.artifact-id }}/${{ inputs.artifact-version }}/${{ inputs.artifact-name }}.pom \ | ||
' | ||
.files[0].target = $targetPattern | | ||
.files[1].pattern = $publicPomPattern | | ||
.files[1].target = $publicPomTarget | ||
' ${{ inputs.deploy-spec-path }}/publish-spec.json.template > ${{ inputs.deploy-spec-path }}/publish-spec.json | ||
- name: Debug deploy spec | ||
shell: bash | ||
working-directory: client | ||
run: | | ||
cat ${{ inputs.deploy-spec-path }}/publish-spec.json | ||
- name: Deploy release | ||
- name: Overwrite default pom with public release pom | ||
shell: bash | ||
working-directory: client | ||
run: | | ||
jf mvn-config --repo-deploy-releases=${{ inputs.jfrog-releases-repo-name }} --repo-deploy-snapshots=${{ inputs.jfrog-snapshots-repo-name }} | ||
jf mvn source:jar javadoc:jar deploy -Dusername=${{ steps.setup-jfrog-cli.outputs.oidc-user }} ${{ steps.setup-jfrog-cli.outputs.oidc-token }} | ||
jf rt bp | ||
jf rt upload --spec=${{ inputs.deploy-spec-path }}/publish-spec.json \ | ||
--build-name=clients-java-push-to-dev \ | ||
--build-number=${{ github.run_number }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"files": [ | ||
{ | ||
"pattern": "target/*.jar", | ||
"target": "test" | ||
}, | ||
{ | ||
"pattern": "one", | ||
"target": "another" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"files": [ | ||
{ | ||
"pattern": "target/*.jar", | ||
"target": "" | ||
}, | ||
{ | ||
"pattern": "", | ||
"target": "" | ||
} | ||
] | ||
} |
Oops, something went wrong.