Skip to content

Commit 3def93a

Browse files
authored
Update build-artifacts.yml
1 parent cc4a13c commit 3def93a

File tree

1 file changed

+71
-65
lines changed

1 file changed

+71
-65
lines changed

.github/workflows/build-artifacts.yml

Lines changed: 71 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -129,77 +129,83 @@ jobs:
129129
jf-build-id: ${{ needs.get-version.outputs.VERSION }}
130130
jf-metadata-build-id: ${{ needs.get-version.outputs.VERSION }}-metadata
131131

132-
create-release-bundle:
133-
permissions:
134-
contents: read
135-
id-token: write
136-
attestations: write
137-
needs:
138-
- upload-artifacts
139-
- get-version
140-
uses: aerospike/shared-workflows/.github/workflows/[email protected]
141-
with:
142-
jf-project: "database"
143-
jf-build-names: "aerospike-admin-deb:${{ needs.get-version.outputs.VERSION }}, aerospike-admin-rpm:${{ needs.get-version.outputs.VERSION }}"
144-
jf-bundle-name: "aerospike-admin"
145-
version: ${{ needs.get-version.outputs.VERSION }}
146-
gh-workflows-ref: v2.0.2 # Use specific shared-workflows version
147-
dry-run: false
148-
# Create-release-bundle:
149-
# runs-on: ubuntu-24.04
150-
# permissions:
151-
# contents: read
152-
# id-token: write
153-
# attestations: write
154-
# env:
155-
# JFROG_CLI_BUILD_NAME: ${{ inputs.jf-build-name || github.workflow }}
156-
# JFROG_CLI_LOG_LEVEL: INFO
157-
# needs:
132+
# create-release-bundle:
133+
# permissions:
134+
# contents: read
135+
# id-token: write
136+
# attestations: write
137+
# needs:
158138
# - upload-artifacts
159139
# - get-version
160-
# steps:
161-
# - name: Checkout
162-
# uses: actions/checkout@v5
163-
# with:
164-
# fetch-depth: 0
165-
# fetch-tags: true
140+
# uses: aerospike/shared-workflows/.github/workflows/[email protected]
141+
# with:
142+
# jf-project: "database"
143+
# jf-build-names: "aerospike-admin-deb:${{ needs.get-version.outputs.VERSION }}, aerospike-admin-rpm:${{ needs.get-version.outputs.VERSION }}"
144+
# jf-bundle-name: "aerospike-admin"
145+
# version: ${{ needs.get-version.outputs.VERSION }}
146+
# gh-workflows-ref: v2.0.2 # Use specific shared-workflows version
147+
# dry-run: false
148+
Create-release-bundle:
149+
runs-on: ubuntu-24.04
150+
permissions:
151+
contents: read
152+
id-token: write
153+
attestations: write
154+
needs:
155+
- upload-artifacts
156+
- get-version
157+
steps:
158+
- name: Checkout
159+
uses: actions/checkout@v5
160+
with:
161+
fetch-depth: 0
162+
fetch-tags: true
166163

167-
# - name: Setup JFrog CLI
168-
# uses: jfrog/setup-jfrog-cli@f748a0599171a192a2668afee8d0497f7c1069df # v4.5.6
169-
# env:
170-
# JF_URL: https://aerospike.jfrog.io
171-
# JF_PROJECT: database
172-
# with:
173-
# oidc-provider-name: database-gh-aerospike
174-
# oidc-audience: database-gh-aerospike
164+
- name: Setup JFrog CLI
165+
uses: jfrog/setup-jfrog-cli@f748a0599171a192a2668afee8d0497f7c1069df # v4.5.6
166+
env:
167+
JF_URL: https://aerospike.jfrog.io
168+
JF_PROJECT: database
169+
with:
170+
oidc-provider-name: database-gh-aerospike
171+
oidc-audience: database-gh-aerospike
175172

176-
# - name: Check JFrog Configuration
177-
# run: |
178-
# jf c show
179-
# jf rt ping
180-
#
181-
# - name: Create release bundle
182-
# run: |
183-
# echo '{
184-
# "name": "${{ github.event.repository.name }}-release-bundle",
185-
# "version": "${{ needs.get-version.outputs.VERSION }}",
186-
# "description": "Release for build version ${{ needs.get-version.outputs.VERSION }}",
173+
- name: Check JFrog Configuration
174+
run: |
175+
jf c show
176+
jf rt ping
177+
178+
- name: Create release bundle
179+
run: |
180+
echo '{
181+
"name": "${{ github.event.repository.name }}-release-bundle",
182+
"version": "${{ needs.get-version.outputs.VERSION }}",
183+
"description": "Release for build version ${{ needs.get-version.outputs.VERSION }}",
187184
# "files": [
188-
# {
189-
# "project": "database",
190-
# "build": "${{ github.event.repository.name }}-rpm/${{ needs.get-version.outputs.VERSION }}"
191-
# },
192-
# {
193-
# "project": "database",
194-
# "build": "${{ github.event.repository.name }}-deb/${{ needs.get-version.outputs.VERSION }}" }
195-
# ]
196-
# }' > release-bundle-spec.json
185+
{
186+
"project": "database",
187+
"build": "${{ github.event.repository.name }}-rpm/${{ needs.get-version.outputs.VERSION }}"
188+
},
189+
{
190+
"project": "database",
191+
"build": "${{ github.event.repository.name }}-rpm/${{ needs.get-version.outputs.VERSION }}-artifacts"
192+
},
193+
{
194+
"project": "database",
195+
"build": "${{ github.event.repository.name }}-deb/${{ needs.get-version.outputs.VERSION }}"
196+
},
197+
{
198+
"project": "database",
199+
"build": "${{ github.event.repository.name }}-deb/${{ needs.get-version.outputs.VERSION }}-artifacts"
200+
}
201+
]
202+
}' > release-bundle-spec.json
197203
198-
# cat release-bundle-spec.json
199-
# jf release-bundle-create "${{ github.event.repository.name }}" "${{ needs.get-version.outputs.VERSION }}" \
200-
# --spec release-bundle-spec.json \
201-
# --project="database" \
202-
# --signing-key="aerospike"
204+
cat release-bundle-spec.json
205+
jf release-bundle-create "${{ github.event.repository.name }}" "${{ needs.get-version.outputs.VERSION }}" \
206+
--spec release-bundle-spec.json \
207+
--project="database" \
208+
--signing-key="aerospike"
203209
204210
test-install-from-jfrog-and-execute:
205211
strategy:

0 commit comments

Comments
 (0)