Skip to content

Commit fd814df

Browse files
authored
Adding release bundles for java jdk8 (#434)
1 parent ecbde0e commit fd814df

File tree

12 files changed

+60
-5
lines changed

12 files changed

+60
-5
lines changed

.github/actions/publish-build-info-to-jfrog/action.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ runs:
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 }}

.github/actions/publish-to-jfrog/action.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ runs:
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 }}
@@ -67,7 +68,7 @@ runs:
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

.github/actions/run-ee-server/action.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ runs:
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 }}

.github/actions/stage-release-artifacts/action.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ runs:
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 }}

.github/workflows/acknowledge.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
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 }}

.github/workflows/aggregate-build.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ on:
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 }}
@@ -49,3 +59,21 @@ jobs:
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

.github/workflows/aggregated-release-build.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
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 }}

.github/workflows/promote.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ jobs:
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 }}

.github/workflows/push-to-stage.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ name: clients-java-push-to-dev
33
on:
44
push:
55
branches:
6-
- stage
7-
- stage-jdk8
6+
- dev/versioning-from-ci
7+
#- stage-jdk8
88
workflow_dispatch:
99

1010
jobs:

.github/workflows/rb-spec.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"files": [
3+
{
4+
"build": "",
5+
"includeDeps": "true",
6+
"project": "clients"
7+
}
8+
]
9+
}

0 commit comments

Comments
 (0)