diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index ea16e1e..b423ee8 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -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 }}" \ @@ -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 \ No newline at end of file diff --git a/.gitignore b/.gitignore index 0ed766b..4af058b 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ VERSION.md build-metadata bin/asvec-linux-amd64 docker/asvec.docker/meta-info +meta-info