Skip to content

Commit

Permalink
feat: publish PackageSet on Fluvio Publish
Browse files Browse the repository at this point in the history
  • Loading branch information
EstebanBorai committed Nov 13, 2023
1 parent 03806c2 commit ef723c3
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,15 @@ jobs:
env:
FLUVIO_BIN: ~/.fluvio/bin/fluvio
run: make publish-artifacts-dev

- name: Publish PackageSet
env:
BPKG_TOKEN: ${{ secrets.BPKG_TOKEN }}
FLUVIO_VERSION: "0.10.17"
FLUVIO_CLOUD_VERSION: "0.2.15"
run: |
./actions/publish-pkgset.sh
- name: Slack Notification
uses: 8398a7/action-slack@v3
if: failure()
Expand Down
32 changes: 32 additions & 0 deletions actions/publish-pkgset.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/usr/bin/env bash

curl -v -X "POST" "https://hub.infinyon.cloud/hub/v1/fvm/pkgset" \
-H "Authorization: $BPKG_TOKEN" \
-H 'Content-Type: application/json; charset=utf-8' \
--data-binary @- << EOF
{
"artifacts": [
{
"name": "fluvio",
"version": "$FLUVIO_VERSION"
},
{
"name": "fluvio-cloud",
"version": "$FLUVIO_CLOUD_VERSION"
},
{
"name": "fluvio-run",
"version": "$FLUVIO_VERSION"
},
{
"name": "cdk",
"version": "$FLUVIO_VERSION"
},
{
"name": "smdk",
"version": "$FLUVIO_VERSION"
}
],
"pkgset": "$FLUVIO_VERSION"
}
EOF

0 comments on commit ef723c3

Please sign in to comment.