Skip to content

Commit

Permalink
Adding release bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
arrowplum committed Nov 26, 2024
1 parent cf3ac13 commit 11d72b0
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ jobs:
- name: Create Docker Build Info
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')))
run: |
jf rt build-docker-create \
--build-name "${{ env.JFROG_CLI_BUILD_NAME }}" \
--build-number "${{ env.VERSION }}" \
Expand All @@ -153,3 +154,29 @@ jobs:
--detailed-summary \
--project ecosystem \
"${{ env.JFROG_CLI_BUILD_NAME }}" "${{ env.VERSION }}"
- name: Create Release Bundle
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')))
run: |
echo '{
"name": "${{ env.JFROG_CLI_BUILD_NAME }}," \
"version": "${{ env.VERSION }}",\
"description": "Release bundle for ${GITHUB_REPOSITORY} version ${GITHUB_SHA}",\
"release_notes": "$sanitized_release_notes",
"files": [
{
"project": "ecosystem",
"build": "${{ env.JFROG_CLI_BUILD_NAME }}"
},
{
"project": "ecosystem",
"pattern": "ecosystem-container-dev-local/asvec/latest/*"
}
]
}' > release-bundle-spec.json
cat release-bundle-spec.json
jf rt release-bundle-create \
"${{ env.JFROG_CLI_BUILD_NAME }}" "${{ env.VERSION }}",\
--project ecosystem \
--spec release-bundle-spec.json
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ VERSION.md
build-metadata
bin/asvec-linux-amd64
docker/asvec.docker/meta-info
meta-info

0 comments on commit 11d72b0

Please sign in to comment.