File tree Expand file tree Collapse file tree 12 files changed +60
-5
lines changed
publish-build-info-to-jfrog Expand file tree Collapse file tree 12 files changed +60
-5
lines changed Original file line number Diff line number Diff line change 3333 uses : jfrog/setup-jfrog-cli@v4
3434 env :
3535 JF_URL : ${{ inputs.jfrog-platform-url }}
36+ JF_PROJECT : clients
3637 with :
3738 version : 2.72.2
3839 oidc-provider-name : ${{ inputs.oidc-provider }}
Original file line number Diff line number Diff line change 5454 uses : jfrog/setup-jfrog-cli@v4
5555 env :
5656 JF_URL : ${{ inputs.jfrog-platform-url }}
57+ JF_PROJECT : clients
5758 with :
5859 version : 2.72.2
5960 oidc-provider-name : ${{ inputs.oidc-provider }}
6768 --repo-deploy-snapshots=${{ inputs.jfrog-snapshots-repo-name }}
6869
6970 # Generating deploy spec to match the artifacts to be uploaded. Builds for java do not follow the standards since we have bouncycastle and gnu builds.
70- # Technically speaking we should have multiple modules looking at how Maven does things. But for practical reasons we don't since we would have duplicate
71+ # Technically speaking we should have multiple modules looking at how Maven does things. But for practical reasons we don't since we would have duplicate
7172 # code to maintain.
7273 - name : Generate deploy spec
7374 shell : bash
Original file line number Diff line number Diff line change 4242 uses : jfrog/setup-jfrog-cli@v4
4343 env :
4444 JF_URL : ${{ inputs.jfrog-platform-url }}
45+ JF_PROJECT : clients
4546 with :
4647 oidc-provider-name : ${{ inputs.oidc-provider }}
4748 oidc-audience : ${{ inputs.oidc-audience }}
Original file line number Diff line number Diff line change 4747 uses : jfrog/setup-jfrog-cli@v4
4848 env :
4949 JF_URL : ${{ inputs.jfrog-platform-url }}
50+ JF_PROJECT : clients
5051 with :
5152 oidc-provider-name : ${{ inputs.oidc-provider }}
5253 oidc-audience : ${{ inputs.oidc-audience }}
Original file line number Diff line number Diff line change 3333 uses : jfrog/setup-jfrog-cli@v4
3434 env :
3535 JF_URL : ${{ inputs.jfrog-platform-url }}
36+ JF_PROJECT : clients
3637 with :
3738 version : 2.72.2
3839 oidc-provider-name : ${{ secrets.JFROG_OIDC_PROVIDER }}
Original file line number Diff line number Diff line change 1616 is-snapshot :
1717 type : string
1818 required : true
19+ release-version :
20+ type : string
21+ required : true
1922 secrets :
2023 JFROG_OIDC_PROVIDER :
2124 required : true
@@ -26,11 +29,18 @@ jobs:
2629 build :
2730 runs-on : ${{ vars.BUILD_CONTAINER_DISTRO_VERSION }}
2831 steps :
32+ - name : Checkout code
33+ uses : actions/checkout@v4
34+ with :
35+ fetch-depth : 0
36+ ref : ${{ inputs.ref }}
37+
2938 - name : Set up JFrog credentials l
3039 id : setup-jfrog-cli
3140 uses : jfrog/setup-jfrog-cli@v4
3241 env :
3342 JF_URL : ${{ inputs.jfrog-platform-url }}
43+ JF_PROJECT : clients
3444 with :
3545 version : 2.72.2
3646 oidc-provider-name : ${{ secrets.JFROG_OIDC_PROVIDER }}
4959 jf rt ba clients-java-push-to-dev ${{ github.run_number }} clients-java-push-to-dev_aerospike-client-jdk${{ inputs.java-version }} ${{ github.run_number }}
5060
5161 jf rt bp clients-java-push-to-dev ${{ github.run_number }}
62+
63+ - name : Install sponge
64+ run : sudo apt install -y moreutils
65+
66+ - name : Create file spec for release bundle
67+ shell : bash
68+ working-directory : .github/workflows
69+ run : |
70+ cat ./rb-spec.json | jq '.files[0].build = "clients-java-push-to-dev/${{ github.run_number }}"' | sponge ./rb-spec.json
71+
72+ - name : Create release bundle from JFrog build
73+ working-directory : ./.github/workflows
74+ run : |
75+ jf rbc --spec=./rb-spec.json clients-java-jdk${{ inputs.java-version }} ${{ inputs.release-version}}
76+
77+ - name : Promote release bundle to DEV stage
78+ run : |
79+ jf rbp --signing-key=aerospike clients-java-jdk${{ inputs.java-version }} ${{ inputs.release-version}} STAGE
Original file line number Diff line number Diff line change 2929 uses : jfrog/setup-jfrog-cli@v4
3030 env :
3131 JF_URL : ${{ inputs.jfrog-platform-url }}
32+ JF_PROJECT : clients
3233 with :
3334 version : 2.72.2
3435 oidc-provider-name : ${{ secrets.JFROG_OIDC_PROVIDER }}
Original file line number Diff line number Diff line change 5151 uses : jfrog/setup-jfrog-cli@v4
5252 env :
5353 JF_URL : ${{ vars.JFROG_PLATFORM_URL }}
54+ JF_PROJECT : clients
5455 with :
5556 oidc-provider-name : ${{ secrets.JFROG_OIDC_PROVIDER }}
5657 oidc-audience : ${{ secrets.JFROG_OIDC_AUDIENCE }}
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ name: clients-java-push-to-dev
33on :
44 push :
55 branches :
6- - stage
7- - stage-jdk8
6+ - dev/versioning-from-ci
7+ # - stage-jdk8
88 workflow_dispatch :
99
1010jobs :
Original file line number Diff line number Diff line change 1+ {
2+ "files" : [
3+ {
4+ "build" : " " ,
5+ "includeDeps" : " true" ,
6+ "project" : " clients"
7+ }
8+ ]
9+ }
You can’t perform that action at this time.
0 commit comments